mirror of
https://github.com/linuxserver/docker-nextcloud.git
synced 2026-02-19 23:03:50 +08:00
21 lines
461 B
Plaintext
21 lines
461 B
Plaintext
#!/usr/bin/with-contenv bash
|
||
|
||
# create folders
|
||
mkdir -p \
|
||
"${NEXTCLOUD_PATH}" \
|
||
/config/crontabs
|
||
|
||
# install app
|
||
if [ ! -e "${NEXTCLOUD_PATH}/index.php" ]; then
|
||
tar xf /app/nextcloud.tar.bz2 -C \
|
||
"${NEXTCLOUD_PATH}" --strip-components=1
|
||
chown abc:abc -R \
|
||
"${NEXTCLOUD_PATH}"
|
||
chmod +x "${NEXTCLOUD_PATH}/occ"
|
||
fi
|
||
|
||
# set cronjob
|
||
[[ ! -f /config/crontabs/root ]] && \
|
||
cp /defaults/root /config/crontabs/root
|
||
cp /config/crontabs/root /etc/crontabs/root
|