diff --git a/scripts/restore b/scripts/restore index 21bf115..342947b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -7,7 +7,11 @@ #================================================= # 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 /usr/share/yunohost/helpers