gogs post-install instructions
This commit is contained in:
parent
a3ba66a353
commit
dc79307332
|
@ -1518,8 +1518,8 @@ function get_mariadb_gnusocial_admin_password {
|
||||||
|
|
||||||
function get_mariadb_git_admin_password {
|
function get_mariadb_git_admin_password {
|
||||||
if [ -f /home/$MY_USERNAME/README ]; then
|
if [ -f /home/$MY_USERNAME/README ]; then
|
||||||
if grep -q "MariaDB git admin password" /home/$MY_USERNAME/README; then
|
if grep -q "Gogs database password" /home/$MY_USERNAME/README; then
|
||||||
GIT_ADMIN_PASSWORD=$(cat /home/$MY_USERNAME/README | grep "MariaDB git admin password" | awk -F ':' '{print $2}' | sed 's/^ *//')
|
GIT_ADMIN_PASSWORD=$(cat /home/$MY_USERNAME/README | grep "Gogs database password" | awk -F ':' '{print $2}' | sed 's/^ *//')
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -6695,14 +6695,20 @@ function install_gogs {
|
||||||
GIT_ADMIN_PASSWORD=$(openssl rand -base64 32)
|
GIT_ADMIN_PASSWORD=$(openssl rand -base64 32)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q "Gogs database admin user" /home/$MY_USERNAME/README; then
|
if ! grep -q "Gogs database user" /home/$MY_USERNAME/README; then
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
echo '' >> /home/$MY_USERNAME/README
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
echo '' >> /home/$MY_USERNAME/README
|
||||||
echo 'Gogs' >> /home/$MY_USERNAME/README
|
echo 'Gogs' >> /home/$MY_USERNAME/README
|
||||||
echo '====' >> /home/$MY_USERNAME/README
|
echo '====' >> /home/$MY_USERNAME/README
|
||||||
echo 'Gogs database admin user: gogsadmin' >> /home/$MY_USERNAME/README
|
echo 'Gogs database user: gogsadmin' >> /home/$MY_USERNAME/README
|
||||||
echo "Gogs database password: $GIT_ADMIN_PASSWORD" >> /home/$MY_USERNAME/README
|
echo "Gogs database password: $GIT_ADMIN_PASSWORD" >> /home/$MY_USERNAME/README
|
||||||
echo 'Gogs database name: gogs' >> /home/$MY_USERNAME/README
|
echo 'Gogs database name: gogs' >> /home/$MY_USERNAME/README
|
||||||
|
echo '' >> /home/$MY_USERNAME/README
|
||||||
|
echo 'Install Steps For First-time Run:' >> /home/$MY_USERNAME/README
|
||||||
|
echo 'Leave email service settings empty' >> /home/$MY_USERNAME/README
|
||||||
|
echo 'Check "Enable Register Confirmation"' >> /home/$MY_USERNAME/README
|
||||||
|
echo 'Check "Enable Mail Notification"' >> /home/$MY_USERNAME/README
|
||||||
|
echo 'Enter some administrator account details and set an email address' >> /home/$MY_USERNAME/README
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "create database gogs;
|
echo "create database gogs;
|
||||||
|
|
Loading…
Reference in New Issue