From d91441322934d173b266715284287d982128ae40 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Mon, 14 Feb 2022 06:47:36 +0000 Subject: [PATCH] Seafile 10_install.sh : useless backslashes --- podman-seafile/10_install.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/podman-seafile/10_install.sh b/podman-seafile/10_install.sh index fb8faf2..74739d1 100755 --- a/podman-seafile/10_install.sh +++ b/podman-seafile/10_install.sh @@ -32,16 +32,16 @@ export seafile_release export listen_if export listen_port -podman-compose up -d && \ -echo -n "Waiting for seahub_settings.py " && \ +podman-compose up -d && +echo -n "Waiting for seahub_settings.py " && while [ ! -e `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py ]; do echo -n "." sleep 1 -done && echo "OK" && \ -sed -i -e "s|^FILE_SERVER_ROOT = \"http://${GARBAYE_SEAFILE_SERVER_HOSTNAME}/seafhttp\"|FILE_SERVER_ROOT = \"https://${GARBAYE_SEAFILE_SERVER_HOSTNAME}/seafhttp\"\nEMAIL_USE_TLS = False\nEMAIL_HOST = '${GARBAYE_SEAFILE_SMTP_SERVER}'\nEMAIL_HOST_USER = ''\nEMAIL_HOST_PASSWORD = ''\nEMAIL_PORT = 25\nDEFAULT_FROM_EMAIL = 'noreply@seafile.garbaye.fr'\nSERVER_EMAIL = 'noreply@seafile.garbaye.fr'|g" `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py && \ -echo -n "Waiting for seahub to finish starting " && \ -( podman logs -f seafile 2>&1 & ) | grep -q 'Seahub is started' && \ -echo "OK" && \ -podman pod stop ${pod_name} && \ -echo Pod built and stopped. && \ +done && echo "OK" && +sed -i -e "s|^FILE_SERVER_ROOT = \"http://${GARBAYE_SEAFILE_SERVER_HOSTNAME}/seafhttp\"|FILE_SERVER_ROOT = \"https://${GARBAYE_SEAFILE_SERVER_HOSTNAME}/seafhttp\"\nEMAIL_USE_TLS = False\nEMAIL_HOST = '${GARBAYE_SEAFILE_SMTP_SERVER}'\nEMAIL_HOST_USER = ''\nEMAIL_HOST_PASSWORD = ''\nEMAIL_PORT = 25\nDEFAULT_FROM_EMAIL = 'noreply@seafile.garbaye.fr'\nSERVER_EMAIL = 'noreply@seafile.garbaye.fr'|g" `get_podman_volume_path ${datavolume}`/seafile/conf/seahub_settings.py && +echo -n "Waiting for seahub to finish starting " && +( podman logs -f seafile 2>&1 & ) | grep -q 'Seahub is started' && +echo "OK" && +podman pod stop ${pod_name} && +echo Pod built and stopped. && shred -u .env