Collection of scripts for interfacing with proxmox containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
673 B

#!/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"