diff options
author | Wave <wave72@users.noreply.github.com> | 2016-07-22 10:55:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-22 10:55:02 +0200 |
commit | 744ad84714fe0f7a3d90250a4ff02dc4327b9061 (patch) | |
tree | 595fb74ec9ea0bc7130d18bd7993d719a222d343 /util/safemode | |
parent | c38c79d71c8ef70ef649f83e322f1984b75ee2dd (diff) | |
parent | 7d897a3f03bd57ed556433eb84a41963ba44e02e (diff) | |
download | volse-hubzilla-744ad84714fe0f7a3d90250a4ff02dc4327b9061.tar.gz volse-hubzilla-744ad84714fe0f7a3d90250a4ff02dc4327b9061.tar.bz2 volse-hubzilla-744ad84714fe0f7a3d90250a4ff02dc4327b9061.zip |
Merge pull request #6 from redmatrix/dev
Dev
Diffstat (limited to 'util/safemode')
-rwxr-xr-x | util/safemode | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/util/safemode b/util/safemode new file mode 100755 index 000000000..05ddbeafe --- /dev/null +++ b/util/safemode @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +if [ $# == 0 ] ; then + echo Usage: $0 on '|' $0 off + echo on saves current addons to addons-safemode and uninstalls all of them + echo off installs all addons in addons-safemode + exit +fi + + +if [ $1 == 'on' ] ; then + util/addons list > addons-safemode + for a in `cat addons-safemode` ; do + util/addons uninstall $a + done + exit +fi + +if [ $1 == 'off' ] ; then + for a in `cat addons-safemode` ; do + util/addons install $a + done + exit +fi + + + |