Przeglądaj źródła

Merge pull request #49 from Gofannon/fix-restore-_common.sh

[fix] Fix backup & restore system
Maniack Crudelis 6 lat temu
rodzic
commit
50dc2aa5fa
2 zmienionych plików z 2 dodań i 12 usunięć
  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
 
 #=================================================