sleep timer configuration
This commit is contained in:
3
start.sh
3
start.sh
@@ -9,6 +9,7 @@ NEXTCLOUD_PASSWORD=${NEXTCLOUD_PASSWORD:-password}
|
||||
NEXTCLOUD_URL=${NEXTCLOUD_URL:-https://nextcloud.example.com}
|
||||
NEXTCLOUD_DIR=${NEXTCLOUD_DIR:-/data}
|
||||
NEXTCLOUD_DIR_CHOWN=${NEXTCLOUD_DIR_CHOWN:-1}
|
||||
NEXTCLOUD_SLEEP=${NEXTCLOUD_SLEEP:-30}
|
||||
|
||||
# check if group already exists
|
||||
GRP_NAME=$(getent group ${USER_GID} )
|
||||
@@ -70,5 +71,5 @@ PARAMS="${PARAMS} --non-interactive -u ${NEXTCLOUD_USERNAME} -p ${NEXTCLOUD_PASS
|
||||
# main loop
|
||||
while true; do
|
||||
/bin/su -s /bin/sh ${USER_NAME} -c "/usr/bin/nextcloudcmd ${PARAMS}"
|
||||
sleep 10
|
||||
sleep ${NEXTCLOUD_SLEEP}
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user