Skip to content

Commit

Permalink
[dist] fix prepare_database_setup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jjacque committed Oct 21, 2023
1 parent 950db22 commit c6738d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dist/functions.setup-appliance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,17 @@ function prepare_database_setup {
mkdir -p $LOG_DIR
chown mysql:mysql $LOG_DIR
fi
touch $MYSQL_LOG
chown mysql:mysql $MYSQL_LOG
fi
echo " - restarting mysql"
systemctl restart $MYSQL_SERVICE
echo " - setting new password for user root in mysql"
mysqladmin -u $MYSQL_USER password $MYSQL_PASS
if [[ $? > 0 ]];then
echo "ERROR: Your mysql setup doesn't fit your rails setup"
echo "Please check your database settings for mysql and rails"
exit 1
fi
;;
esac
Expand Down

0 comments on commit c6738d1

Please sign in to comment.