updated service file with change owners and permissions of the data directory

This commit is contained in:
Gyorgy Berenyi
2024-09-13 14:11:33 +00:00
parent b810a3416c
commit 5d5d10ef4c

View File

@@ -32,7 +32,7 @@
"DEPEND": "null",
"START_ON_BOOT": "false",
"ENTRYPOINT": "sh -c",
"CMD": "mkdir -p /etc/user/data/nextcloud/db && mkdir -p /etc/system/log/nextcloud/db && mkdir -p /etc/user/data/nextcloud/apps && mkdir -p /etc/user/data/nextcloud/config && mkdir -p /etc/user/data/nextcloud/data && chmod 777 -R /etc/user/data/nextcloud",
"CMD": "mkdir -p /etc/user/data/nextcloud/db && mkdir -p /etc/system/log/nextcloud/db && mkdir -p /etc/user/data/nextcloud/apps && mkdir -p /etc/user/data/nextcloud/config && mkdir -p /etc/user/data/nextcloud/data && chmod 777 -R /etc/user/data/nextcloud && chmod 0770 -R /etc/user/data/nextcloud/data && chown -R 82:82 /etc/user/data/nextcloud/data",
"PRE_START": "null",
"POST_START": "null"
},
@@ -68,7 +68,7 @@
{"EXEC": "/ready.sh"}
],
"ENV_FILES": [ "/etc/user/secret/nextcloud/nextcloud.json" ],
"EXTRA": "null",
"EXTRA": "--restart always",
"DEPEND": "null",
"START_ON_BOOT": "false",
"CMD": "null",
@@ -94,7 +94,7 @@
{"HTTP": ""},
{"EXEC": "/ready.sh"}
],
"EXTRA": "null",
"EXTRA": "--restart always",
"DEPEND": "null",
"START_ON_BOOT": "false",
"CMD": "null",
@@ -144,7 +144,7 @@
{"EXEC": "/ready.sh"}
],
"ENV_FILES": [ "/etc/user/secret/nextcloud/nextcloud.json" ],
"EXTRA": "--user www-data",
"EXTRA": "--user www-data --restart always",
"DEPEND": "null",
"START_ON_BOOT": "false",
"CMD": "null",
@@ -189,7 +189,7 @@
{"HTTP": ""},
{"EXEC": "/ready.sh"}
],
"EXTRA": "null",
"EXTRA": "--restart always",
"DEPEND": "null",
"START_ON_BOOT": "false",
"CMD": "null",