improve script
This commit is contained in:
@@ -60,7 +60,7 @@ in {
|
|||||||
trigger="server";
|
trigger="server";
|
||||||
script = pkgs.writeShellScript "setup" ''
|
script = pkgs.writeShellScript "setup" ''
|
||||||
# Define the command wrapper
|
# 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..."
|
echo "Waiting for Nextcloud container to start..."
|
||||||
until $OCC status > /dev/null 2>&1; do
|
until $OCC status > /dev/null 2>&1; do
|
||||||
@@ -68,8 +68,8 @@ in {
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "Maintenance..."
|
echo "Maintenance..."
|
||||||
$OCC maintenance:repair --include-expensive --non-interaction
|
$OCC maintenance:repair --include-expensive --no-interaction
|
||||||
$OCC db:add-missing-indices --non-interaction
|
$OCC db:add-missing-indices --no-interaction
|
||||||
|
|
||||||
echo "Applying settings..."
|
echo "Applying settings..."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user