Rename 50-install.sh to 94-install.sh

This commit is contained in:
Alexandre
2022-09-12 22:18:58 +02:00
committed by GitHub
parent 61c4b3d4a0
commit 420ec3023d

View File

@@ -0,0 +1,22 @@
#!/bin/bash
NEXTCLOUD_PATH="/data/config/www/nextcloud"
# create folders
mkdir -p \
"${NEXTCLOUD_PATH}" \
/data/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 /data/config/crontabs/root ]] && \
cp /defaults/root /data/config/crontabs/root
cp /data/config/crontabs/root /etc/crontabs/root