nextcloud: install oidc/mail/external apps from releases
This commit is contained in:
parent
5fe584cc5f
commit
7a7433f824
@ -65,10 +65,22 @@ spec:
|
|||||||
fi
|
fi
|
||||||
installed="$(su -s /bin/sh www-data -c "php /var/www/html/occ status" 2>/dev/null | awk '/installed:/{print $3}' || true)"
|
installed="$(su -s /bin/sh www-data -c "php /var/www/html/occ status" 2>/dev/null | awk '/installed:/{print $3}' || true)"
|
||||||
if [ "${installed}" = "true" ]; then
|
if [ "${installed}" = "true" ]; then
|
||||||
for app in oidc_login external mail; do
|
install_app() {
|
||||||
su -s /bin/sh www-data -c "php /var/www/html/occ app:install ${app}" || true
|
app="$1"
|
||||||
|
url="$2"
|
||||||
|
target="/var/www/html/custom_apps/${app}"
|
||||||
|
if [ ! -d "${target}" ]; then
|
||||||
|
mkdir -p /tmp/nextcloud-apps
|
||||||
|
curl -fsSL "${url}" -o "/tmp/nextcloud-apps/${app}.tar.gz"
|
||||||
|
tar -xzf "/tmp/nextcloud-apps/${app}.tar.gz" -C /var/www/html/custom_apps
|
||||||
|
rm -f "/tmp/nextcloud-apps/${app}.tar.gz"
|
||||||
|
chown -R 33:33 "${target}"
|
||||||
|
fi
|
||||||
su -s /bin/sh www-data -c "php /var/www/html/occ app:enable ${app}" || true
|
su -s /bin/sh www-data -c "php /var/www/html/occ app:enable ${app}" || true
|
||||||
done
|
}
|
||||||
|
install_app oidc_login https://github.com/pulsejet/nextcloud-oidc-login/releases/latest/download/oidc_login.tar.gz
|
||||||
|
install_app external https://github.com/nextcloud/external/releases/latest/download/external.tar.gz
|
||||||
|
install_app mail https://github.com/nextcloud/mail/releases/latest/download/mail.tar.gz
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_HOST
|
- name: POSTGRES_HOST
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user