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:
27
gogs.sh
Normal file
27
gogs.sh
Normal 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"
|
||||
Reference in New Issue
Block a user