Fix service
This commit is contained in:
1 parent
4b68accf2f
commit
ad2b492b51
2 files changed
+6
-3
No files matched your search
@@ -60,14 +60,14 @@ 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
|
||||
sleep 2
|
||||
done
|
||||
|
||||
echo "Maintenance ..."
|
||||
echo "Maintenance..."
|
||||
$OCC maintenance:repair --include-expensive --non-interaction
|
||||
$OCC db:add-missing-indices --non-interaction
|
||||
|
||||
@@ -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