Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-04-20 17:12:41 +0300
committernachoparker <nacho@ownyourbits.com>2018-04-20 17:12:41 +0300
commitd5434066423583da715436634e320002152d31f7 (patch)
tree5b47d48ce32e35e6ae9a2e7e56db9123f5f5353f /update.sh
parent9c600bd34523944c63c8ad1a583fb7d4d7e3cef7 (diff)
clean update
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh36
1 files changed, 0 insertions, 36 deletions
diff --git a/update.sh b/update.sh
index 28c04700..a69dcde2 100755
--- a/update.sh
+++ b/update.sh
@@ -108,42 +108,6 @@ done
# not for image builds, only live updates
[[ ! -f /.ncp-image ]] && {
- # make sure the redis directory exists
- mkdir -p /var/log/redis
- chown redis /var/log/redis
-
-[[ ! -f /.docker-image ]] && {
- # improve dependency of database with automount
- sed -i 's|^ExecStartPre=/bin/sleep .*|ExecStartPre=/bin/sleep 20|' /lib/systemd/system/mariadb.service
- sed -i 's|^Restart=.*|Restart=on-failure|' /lib/systemd/system/mariadb.service
-
- # fix for nc-automount-links
- cat > /usr/local/etc/nc-automount-links <<'EOF'
-#!/bin/bash
-
-ls -d /media/* &>/dev/null && {
-
- # remove old links
- for l in $( ls /media/ ); do
- test -L /media/"$l" && rm /media/"$l"
- done
-
- # create links
- i=0
- for d in $( ls -d /media/* 2>/dev/null ); do
- if [ $i -eq 0 ]; then
- test -e /media/USBdrive || test -d "$d" && ln -sT "$d" /media/USBdrive
- else
- test -e /media/USBdrive$i || test -d "$d" && ln -sT "$d" /media/USBdrive$i
- fi
- i=$(( i + 1 ))
- done
-
-}
-EOF
- chmod +x /usr/local/etc/nc-automount-links
-}
-
# fix updates from NC12 to NC12.0.1
rm -rf /var/www/nextcloud/.well-known