dataset/seed/nextcloud/manual/image/postinstall/nextcloud.sh

42 lines
1.7 KiB
Bash
Raw Normal View History

2023-01-17 21:43:32 +01:00
#CALENDAR="3.5.2"
2022-12-25 17:08:52 +01:00
ln -s "/srv/nextcloud/data" "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/share/nextcloud/data"
mkdir -p "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/share/nextcloud/apps"
cd "$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/share/nextcloud/apps"
2022-03-08 19:42:28 +01:00
#user_saml=$(wget https://api.github.com/repos/nextcloud/user_saml/releases/latest -q -O - | jq -r '.assets[0].browser_download_url')
app=$(wget https://api.github.com/repos/pulsejet/nextcloud-oidc-login/releases/latest -q -O - | jq -r '.assets[0].browser_download_url')
wget -q $app
tar xf *tar.gz
rm -f *tar.gz
chown -R root: oidc_login
#
2023-01-17 21:43:32 +01:00
if [ -z "$CALENDAR" ]; then
app=$(wget https://api.github.com/repos/nextcloud-releases/calendar/releases/latest -q -O - | jq -r '.assets[0].browser_download_url')
else
app="https://github.com/nextcloud-releases/calendar/releases/download/v${CALENDAR}/calendar-v${CALENDAR}.tar.gz"
fi
2022-03-08 19:42:28 +01:00
wget -q $app -O app.tar.gz
tar xf app.tar.gz
rm -f app.tar.gz
chown -R root: calendar
#
2022-12-25 17:08:52 +01:00
#app=$(wget https://api.github.com/repos/nextcloud-releases/contacts/releases/latest -q -O - | jq -r '.assets[0].browser_download_url')
2022-10-20 21:02:08 +02:00
app=https://github.com/nextcloud-releases/contacts/releases/download/v4.2.2/contacts-v4.2.2.tar.gz
2022-03-08 19:42:28 +01:00
wget -q $app -O app.tar.gz
tar xf app.tar.gz
rm -f app.tar.gz
chown -R root: contacts
#
2022-12-25 17:08:52 +01:00
#app=$(wget https://api.github.com/repos/nextcloud/notes/releases/latest -q -O - | jq -r '.assets[0].browser_download_url')
2022-10-20 21:02:08 +02:00
app=https://github.com/nextcloud/notes/releases/download/v4.5.1/notes.tar.gz
2022-03-08 19:42:28 +01:00
wget -q $app -O app.tar.gz
tar xf app.tar.gz
rm -f app.tar.gz
chown -R root: notes
#
app=$(wget https://api.github.com/repos/nextcloud/tasks/releases/latest -q -O - | jq -r '.assets[0].browser_download_url')
wget -q $app -O app.tar.gz
tar xf app.tar.gz
rm -f app.tar.gz
chown -R root: tasks
cd -