Browse Source

[fix] Fix backup & restore system

See https://github.com/YunoHost-Apps/dokuwiki_ynh/pull/37#pullrequestreview-134457098
and https://github.com/YunoHost/yunohost/pull/489#issuecomment-396854686
Gofannon 6 years ago
parent
commit
c2d880694e
2 changed files with 2 additions and 12 deletions
  1. 1 6
      scripts/backup
  2. 1 6
      scripts/restore

+ 1 - 6
scripts/backup

@@ -6,12 +6,7 @@
 # IMPORT GENERIC HELPERS
 #=================================================
 
-if [ ! -e _common.sh ]; then
-	# Get the _common.sh file if it's not in the current directory
-	cp ../settings/scripts/_common.sh ./_common.sh
-	chmod a+rx _common.sh
-fi
-source _common.sh
+source ../settings/scripts/_common.sh
 source /usr/share/yunohost/helpers
 
 #=================================================

+ 1 - 6
scripts/restore

@@ -6,12 +6,7 @@
 # IMPORT GENERIC HELPERS
 #=================================================
 
-if [ ! -e _common.sh ]; then
-	# Get the _common.sh file if it's not in the current directory
-	cp ../settings/scripts/_common.sh ./_common.sh
-	chmod a+rx _common.sh
-fi
-source _common.sh
+source ../settings/scripts/_common.sh
 source /usr/share/yunohost/helpers
 
 #=================================================