Fix service
This commit is contained in:
@@ -51,10 +51,11 @@ in
|
||||
value = {
|
||||
description = "Run ${containerSet.name} setup";
|
||||
after = [ "podman-${containerSet.name}-${containerSet.setup.trigger}.service" ];
|
||||
requires = [ "podman-${containerSet.name}-${containerSet.setup.trigger}.service" ];
|
||||
wants = [ "podman-${containerSet.name}-${containerSet.setup.trigger}.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
TimeoutStartSec = "30s";
|
||||
ExecStart = "${containerSet.setup.script}";
|
||||
RemainAfterExit = true;
|
||||
User = "root";
|
||||
|
||||
@@ -60,7 +60,7 @@ in {
|
||||
trigger="server";
|
||||
script = pkgs.writeShellScript "setup" ''
|
||||
# Define the command wrapper
|
||||
OCC="${pkgs.podman}/bin/podman exec -u www-data nextcloud php occ"
|
||||
OCC="${pkgs.podman}/bin/podman exec -u www-data nextcloud-server php occ"
|
||||
|
||||
echo "Waiting for Nextcloud container to start..."
|
||||
until $OCC status > /dev/null 2>&1; do
|
||||
@@ -77,6 +77,8 @@ in {
|
||||
$OCC config:system:set phone_region --value="CH"
|
||||
$OCC config:app:set core backgroundjobs_mode --value="cron"
|
||||
|
||||
|
||||
echo "Completed Setup"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user