Maniack Crudelis 7 سال پیش
والد
کامیت
c03c9fc045
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      scripts/backup

+ 6 - 0
scripts/backup

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