aboutsummaryrefslogtreecommitdiff
path: root/scripts/once-only-nextcloud.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-02 12:44:57 -0300
committerEuAndreh <eu@euandre.org>2019-06-02 12:44:57 -0300
commita77ac3d93d3d03dace26c3876befca1db877f0c3 (patch)
tree5d41bcd4bbb88ae98105b945412653390407c17f /scripts/once-only-nextcloud.sh
parentStore borg updated files after borg create run (diff)
downloaddotfiles-a77ac3d93d3d03dace26c3876befca1db877f0c3.tar.gz
dotfiles-a77ac3d93d3d03dace26c3876befca1db877f0c3.tar.xz
Move definitely from ownCloud to Nextcloud
Diffstat (limited to 'scripts/once-only-nextcloud.sh')
-rwxr-xr-xscripts/once-only-nextcloud.sh9
1 files changed, 9 insertions, 0 deletions
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