diff options
| author | nemsia <nemsia@nemsia.org> | 2017-05-07 17:49:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-07 17:49:28 +0200 |
| commit | 35275b3a7824d70e9bfdef0fe7803d14dfd053d9 (patch) | |
| tree | 543895e272d17b7a188efbddbea16ad50d9cd099 /scripts/remove | |
| parent | 7aec4035b81040feb41cf49c3756a87d90beb7d8 (diff) | |
| parent | a2d0dc06c61672d5b191a9f74159e7fe4ca37ba1 (diff) | |
| download | mastodon_ynh-35275b3a7824d70e9bfdef0fe7803d14dfd053d9.tar.gz mastodon_ynh-35275b3a7824d70e9bfdef0fe7803d14dfd053d9.tar.bz2 mastodon_ynh-35275b3a7824d70e9bfdef0fe7803d14dfd053d9.zip | |
Merge pull request #24 from nemsia/patch-2
[fix] Reinstall dependencies on restore + check .fonctions on remove
Diffstat (limited to 'scripts/remove')
| -rw-r--r-- | scripts/remove | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/remove b/scripts/remove index 373d028..1b2c405 100644 --- a/scripts/remove +++ b/scripts/remove @@ -3,6 +3,12 @@ # 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 app helpers source /usr/share/yunohost/helpers |
