From 07bf2fc122f00bf8bf8a10777bc7f89fc18c6e9b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Apr 2019 15:28:57 +0200 Subject: [PATCH] Fix GENERIC START --- scripts/_common.sh | 20 ++++++++++++++++++++ scripts/install | 22 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 scripts/_common.sh diff --git a/scripts/_common.sh b/scripts/_common.sh new file mode 100644 index 0000000..8bb05b4 --- /dev/null +++ b/scripts/_common.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +#================================================= +# COMMON VARIABLES +#================================================= + +# dependencies used by the app +pkg_dependencies="deb1 deb2" + +#================================================= +# PERSONAL HELPERS +#================================================= + +#================================================= +# EXPERIMENTAL HELPERS +#================================================= + +#================================================= +# FUTURE OFFICIAL HELPERS +#================================================= diff --git a/scripts/install b/scripts/install index dbaf09e..f93ee82 100644 --- a/scripts/install +++ b/scripts/install @@ -1,5 +1,27 @@ #!/bin/bash +#================================================= +# GENERIC START +#================================================= +# IMPORT GENERIC HELPERS +#================================================= + +source _common.sh +source /usr/share/yunohost/helpers + +#================================================= +# MANAGE SCRIPT FAILURE +#================================================= + +ynh_clean_setup () { + ### Remove this function if there's nothing to clean before calling the remove script. + true +} +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors + + + # Configurable variables SYNCHOME="/home/yunohost.app/syncthing" SYNCUSER=debian-syncthing