aboutsummaryrefslogtreecommitdiff
path: root/scripts/once-only-nextcloud.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-03-23 20:38:44 -0300
committerEuAndreh <eu@euandre.org>2018-03-23 20:49:09 -0300
commit4e734232c611890f616194ed5cfade2549e4491b (patch)
tree38e74c5f28aaa8ecc8c6cbff7836d919c8fa7a1b /scripts/once-only-nextcloud.sh
parentInitial commit: add git-crypt .gitattributes file (diff)
downloaddotfiles-4e734232c611890f616194ed5cfade2549e4491b.tar.gz
dotfiles-4e734232c611890f616194ed5cfade2549e4491b.tar.xz
Initial commit: now public (again)
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..8400080
--- /dev/null
+++ b/scripts/once-only-nextcloud.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "$(pidof nextcloud)" ]
+then
+ echo "Nextcloud already running."
+else
+ echo "Nextcloud not running yet. Starting it."
+ nextcloud & disown
+fi