'gitea-installer.sh' updaten

This commit is contained in:
rogier committed 2022-02-01 14:24:37 +01:00
1 parent 8f3d3ecd6a
commit be1c8e4c38
1 file changed
+4 -3
+4 -3
View File
@@ -1,5 +1,6 @@
# variablen setzen
#!/bin/sh
# variables
shell_arguments=$1
giteadownloader_default="https://dl.gitea.io/gitea/1.15/gitea-1.15-linux-amd64"
myIP="$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)"
@@ -72,7 +73,7 @@ mysql -e "CREATE DATABASE $dbtable;"
mysql -e "GRANT ALL PRIVILEGES ON $dbtable . * TO '$dbuser'@'localhost';"
mysql -e "FLUSH PRIVILEGES;"
# set system variable
# set system variables
echo "//-->> Set system variables"
export GITEA_WORK_DIR=/var/lib/gitea/ >> /dev/null 2>&1
@@ -122,7 +123,7 @@ rm giteaupdater
echo ""
echo ""
# datenbankverbindung ausgeben
# output install
echo "##########################################################################"
echo "Gitea was installed successfully!"
echo "Now, open your browser and visit: http://$myIP:3000"