1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lufi_ynh.git synced 2024-09-03 19:36:28 +02:00

[fix] generic function for restore

This commit is contained in:
magikcypress 2017-05-13 17:15:51 +02:00
parent 22afd029b0
commit ba70aa1ee9
No known key found for this signature in database
GPG key ID: 3B3C7CD61957AC9A

View file

@ -3,6 +3,11 @@
# Exit on command errors and treat unset variables as an error
set -u
if [ ! -e .fonctions ]; then
# Get file fonction if not been to the current directory
sudo cp ../settings/scripts/.fonctions ./.fonctions
sudo chmod a+rx .fonctions
fi
source .fonctions # Loads the generic functions usually used in the script
source /usr/share/yunohost/helpers # Source app helpers