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

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2018-11-26 19:08:47 +0300
committerGitHub <noreply@github.com>2018-11-26 19:08:47 +0300
commit134c61d4cd5a1520a9e44b94ee8caeb1dc205d4b (patch)
tree7ed032f19d65cafec802904439c55e30aaac8ef7 /nextcloud_update.sh
parent6bf7a8e20cd54bd455ab06e637abbbecdb8daa6f (diff)
remove legacy code from the ownCloud days (#673)
Diffstat (limited to 'nextcloud_update.sh')
-rw-r--r--nextcloud_update.sh23
1 files changed, 1 insertions, 22 deletions
diff --git a/nextcloud_update.sh b/nextcloud_update.sh
index f0f7bc8b..6a2751e4 100644
--- a/nextcloud_update.sh
+++ b/nextcloud_update.sh
@@ -16,9 +16,6 @@ debug_mode
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
-# Put your theme name here:
-THEME_NAME=""
-
# Must be root
root_check
@@ -285,7 +282,7 @@ then
fi
# Backup data
-for folders in config themes apps
+for folders in config apps
do
if [[ "$(rsync -Aax $NCPATH/$folders $BACKUP)" -eq 0 ]]
then
@@ -326,15 +323,6 @@ fi
if [ -d $BACKUP/apps/ ]
then
echo "$BACKUP/apps/ exists"
-else
-msg_box "Something went wrong with backing up your old nextcloud instance
-Please check in $BACKUP if apps/ folder exist."
- exit 1
-fi
-
-if [ -d $BACKUP/themes/ ]
-then
- echo "$BACKUP/themes/ exists"
echo
printf "${Green}All files are backed up.${Color_Off}\n"
occ_command maintenance:mode --on
@@ -342,7 +330,6 @@ then
rm -rf $NCPATH
tar -xjf "$HTML/$STABLEVERSION.tar.bz2" -C "$HTML"
rm "$HTML/$STABLEVERSION.tar.bz2"
- cp -R $BACKUP/themes "$NCPATH"/
cp -R $BACKUP/config "$NCPATH"/
bash $SECURE & spinner_loading
occ_command maintenance:mode --off
@@ -392,14 +379,6 @@ then
rm -rf $NC_APPS_PATH/support
fi
-# Set $THEME_NAME
-VALUE2="$THEME_NAME"
-if ! grep -Fxq "$VALUE2" "$NCPATH/config/config.php"
-then
- sed -i "s|'theme' => '',|'theme' => '$THEME_NAME',|g" "$NCPATH"/config/config.php
- echo "Theme set"
-fi
-
# Pretty URLs
echo "Setting RewriteBase to \"/\" in config.php..."
chown -R www-data:www-data "$NCPATH"