Skip to content

Commit

Permalink
fix mariadb service
Browse files Browse the repository at this point in the history
fix mariadb service

fix mariadb service

fix mariadb service

fix mariadb service

fix mariadb service

fix mariadb service
  • Loading branch information
tsirysndr committed Jul 12, 2024
1 parent 084a998 commit 8d5f0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mariadb/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn setup() -> Result<String, Error> {
"flox", "install", "mariadb", "overmind", "tmux"
])?
.with_exec(vec!["[ -d $MYSQL_DATADIR ] || mkdir -p $MYSQL_DATADIR"])?
.with_exec(vec!["[ -f $MYSQL_DATADIR/ca.pem ] || flox activate -- mysql_install_db --auth-root-authentication-method=normal --datadir=$MYSQL_DATADIR --pid-file=$MYSQL_HOME/mysql.pid"])?
.with_exec(vec!["[ -d $MYSQL_DATADIR/sys ] || flox activate -- command -v sudo > /dev/null && flox activate -- sudo .flox/run/*/bin/mysql_install_db --auth-root-authentication-method=normal --user=`whoami` --datadir=$MYSQL_DATADIR --pid-file=$MYSQL_HOME/mysql.pid --force || flox activate -- mysql_install_db --auth-root-authentication-method=normal --user=`whoami` --datadir=$MYSQL_DATADIR --pid-file=$MYSQL_HOME/mysql.pid --force"])?
.with_exec(vec![
"grep -q mariadb Procfile || echo 'mariadb: mysqld --datadir=$MYSQL_DATADIR --log-error=$MYSQL_HOME/mysql.log --port=$MYSQL_PORT --socket=$MYSQL_HOME/mysql.socket' >> Procfile",
])?
Expand Down

0 comments on commit 8d5f0e6

Please sign in to comment.