From 772a4d6c17b84fa37cd315062be6f70cd8754969 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Thu, 20 Oct 2016 16:03:48 +0200 Subject: [PATCH] add update script for config manipulation --- transfert_backups.sh | 5 ----- update.sh | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) delete mode 100755 transfert_backups.sh create mode 100755 update.sh diff --git a/transfert_backups.sh b/transfert_backups.sh deleted file mode 100755 index e4a489e..0000000 --- a/transfert_backups.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -NOW=$1 -scp admin@45.32.157.221:/home/admin/backups/"$NOW"_lesspass_db.sql . -scp "$NOW"_lesspass_db.sql admin@107.191.47.38:~/backups/ -rm "$NOW"_lesspass_db.sql diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..bfb7534 --- /dev/null +++ b/update.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +function cmd { + pwd +} + +submodules=( backend cli core cozy frontend nginx pure webextension ) +#submodules=( cozy frontend webextension ) +for submodule in "${submodules[@]}" +do + cd $submodule + cmd + cd .. +done \ No newline at end of file