diff --git a/src/freedombone b/src/freedombone index 8526ce10..890603c1 100755 --- a/src/freedombone +++ b/src/freedombone @@ -1518,8 +1518,8 @@ function get_mariadb_gnusocial_admin_password { function get_mariadb_git_admin_password { if [ -f /home/$MY_USERNAME/README ]; then - if grep -q "MariaDB git admin 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/^ *//') + if grep -q "Gogs database password" /home/$MY_USERNAME/README; then + GIT_ADMIN_PASSWORD=$(cat /home/$MY_USERNAME/README | grep "Gogs database password" | awk -F ':' '{print $2}' | sed 's/^ *//') fi fi } @@ -6695,14 +6695,20 @@ function install_gogs { GIT_ADMIN_PASSWORD=$(openssl rand -base64 32) 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 'Gogs' >> /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 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 echo "create database gogs;