diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/backup.sh | 1 | ||||
-rwxr-xr-x | scripts/once-only-nextcloud.sh | 9 | ||||
-rwxr-xr-x | scripts/once-only-owncloud.sh | 9 |
3 files changed, 9 insertions, 10 deletions
diff --git a/scripts/backup.sh b/scripts/backup.sh index 73ef1c8..7501d1d 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -43,7 +43,6 @@ borg create \ --progress \ --compression lzma,6 \ ~/borgbackup::"{hostname}-{now}-${BACKUP_TAG}" \ - ~/ownCloud/ \ ~/Nextcloud/ \ ~/mbsync/ \ ~/archive/ \ diff --git a/scripts/once-only-nextcloud.sh b/scripts/once-only-nextcloud.sh new file mode 100755 index 0000000..7754c34 --- /dev/null +++ b/scripts/once-only-nextcloud.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +if [ "$(pidof nextcloud)" ] +then + echo "Nextcloud already running." +else + echo "Nextcloud not running yet. Starting it." + owncloud & disown +fi diff --git a/scripts/once-only-owncloud.sh b/scripts/once-only-owncloud.sh deleted file mode 100755 index 874ba56..0000000 --- a/scripts/once-only-owncloud.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -if [ "$(pidof nextcloud)" ] -then - echo "ownCloud already running." -else - echo "ownCloud not running yet. Starting it." - owncloud & disown -fi |