소스 검색

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

[fix] Fix backup & restore system
Maniack Crudelis 6 년 전
부모
커밋
50dc2aa5fa
2개의 변경된 파일2개의 추가작업 그리고 12개의 파일을 삭제
  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
 
 #=================================================