1
0
mirror of https://github.com/hak8or/proxmox_scripts.git synced 2025-12-14 17:18:07 +00:00

Pretty much working scripts!

This commit is contained in:
2017-11-06 19:36:50 -05:00
parent a741cde852
commit 0bec6c2f3a
3 changed files with 124 additions and 47 deletions

27
gogs.sh Normal file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
##########################
# Script to install Gogs, a Go based version control system.
##########################
# Header for this script
TITLE="Gogs_Setup"
LOGFILE=/tmp/$TITLE.log
DEPTH=2
if [[ $DEPTH == 0 ]]; then
TAGSTR="-->"
elif [[ $DEPTH == 1 ]]; then
TAGSTR="--->"
elif [[ $DEPTH == 2 ]]; then
TAGSTR="----->"
elif [[ $DEPTH == 3 ]]; then
TAGSTR="------>"
fi
echo "$TAGSTR ====== $TITLE (Logged to $LOGFILE) ======"
# All we need to do is install gogs. Gogs configuration must be done via command line.
echo "$TAGSTR Installing Gogs"
yaourt -S gogs > $LOGFILE 2>&1
# Lastly, say we are done.
echo "$TAGSTR Completed $TITLE"