improve script
This commit is contained in:
@@ -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-server php occ"
|
||||
OCC="${pkgs.podman}/bin/podman --log-level error exec -u www-data nextcloud-server php occ"
|
||||
|
||||
echo "Waiting for Nextcloud container to start..."
|
||||
until $OCC status > /dev/null 2>&1; do
|
||||
@@ -68,8 +68,8 @@ in {
|
||||
done
|
||||
|
||||
echo "Maintenance..."
|
||||
$OCC maintenance:repair --include-expensive --non-interaction
|
||||
$OCC db:add-missing-indices --non-interaction
|
||||
$OCC maintenance:repair --include-expensive --no-interaction
|
||||
$OCC db:add-missing-indices --no-interaction
|
||||
|
||||
echo "Applying settings..."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user