mirror of
https://github.com/YunoHost-Apps/phpmyadmin_ynh.git
synced 2024-09-03 19:56:46 +02:00
Adjustments on sed commands
This commit is contained in:
parent
39f56277a0
commit
b29555de19
2 changed files with 6 additions and 3 deletions
|
@ -60,7 +60,8 @@ ynh_app_setting_set $app db_pwd $db_pwd
|
||||||
ynh_app_setting_set $app db_user $db_user
|
ynh_app_setting_set $app db_user $db_user
|
||||||
sed -i "s@YNH_PMA_USER@$db_user@g" ../conf/create_db.sql
|
sed -i "s@YNH_PMA_USER@$db_user@g" ../conf/create_db.sql
|
||||||
sudo mysql -u root -p$(sudo cat /etc/yunohost/mysql) < ../conf/create_db.sql
|
sudo mysql -u root -p$(sudo cat /etc/yunohost/mysql) < ../conf/create_db.sql
|
||||||
sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/create_tables.sql
|
sed -i "s@phpmyadmin@YNH_PMA_USER@g" $final_path/sql/create_tables.sql
|
||||||
|
sed -i "s@YNH_PMA_USER@$db_user@g" $final_path/sql/create_tables.sql
|
||||||
sudo mysql -u $db_user -p$db_pwd < $final_path/sql/create_tables.sql
|
sudo mysql -u $db_user -p$db_pwd < $final_path/sql/create_tables.sql
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
|
@ -24,9 +24,11 @@ sudo tar xvzf ../phpMyAdmin.tar.gz -C .. > /dev/null 2>&1
|
||||||
sudo cp -r ../phpMyAdmin-$version-all-languages/* $final_path
|
sudo cp -r ../phpMyAdmin-$version-all-languages/* $final_path
|
||||||
|
|
||||||
# Update tables
|
# Update tables
|
||||||
sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/upgrade_column_info_4_3_0+.sql
|
sed -i "s@phpmyadmin@YNH_PMA_USER@g" $final_path/sql/upgrade_column_info_4_3_0+.sql
|
||||||
|
sed -i "s@YNH_PMA_USER@$db_user@g" $final_path/sql/upgrade_column_info_4_3_0+.sql
|
||||||
mysql -u $db_user -p$db_pwd < $final_path/sql/upgrade_column_info_4_3_0+.sql
|
mysql -u $db_user -p$db_pwd < $final_path/sql/upgrade_column_info_4_3_0+.sql
|
||||||
sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/create_tables.sql
|
sed -i "s@phpmyadmin@YNH_PMA_USER@g" $final_path/sql/create_tables.sql
|
||||||
|
sed -i "s@YNH_PMA_USER@$db_user@g" $final_path/sql/create_tables.sql
|
||||||
mysql -u $db_user -p$db_pwd < $final_path/sql/create_tables.sql
|
mysql -u $db_user -p$db_pwd < $final_path/sql/create_tables.sql
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
Loading…
Reference in a new issue