Files
hassio-addons/nextcloud/rootfs/etc/cont-init.d/50-install.sh
Alexandre 0d1f2f0489 lint
2022-02-18 16:49:00 +01:00

23 lines
505 B
Bash

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# 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