1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pufferpanel_ynh.git synced 2024-09-03 20:16:03 +02:00

Merge pull request #3 from frju365/master

test
This commit is contained in:
liberodark 2019-01-04 20:46:32 +01:00 committed by GitHub
commit 7c1526c7d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,3 @@
-- Disable Foreign keys to avoid errors in dropping
SET FOREIGN_KEY_CHECKS = 0;
CREATE TABLE IF NOT EXISTS `acp_settings` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`setting_ref` varchar(25) NOT NULL,

View file

@ -117,7 +117,10 @@ db_user=$db_name
echo "Creating pufferpanel account and installing database..."
#mysql -h localhost -P 3306 -u $db_name --password="$db_pwd" < ..config/install.sql
ynh_mysql_connect_as $db_user $db_pwd $db_name < ../conf/install.sql
ynh_mysql_execute_as_root "SET FOREIGN_KEY_CHECKS = 0;" $db_name
ynh_mysql_connect_as $db_user $db_pwd $db_name < ..config/install.sql
#mysql -h localhost -P 3306 -u $db_name --password="$db_pwd" -e "SET GLOBAL event_scheduler = ON;"
ynh_mysql_connect_as $db_user $db_pwd <<< "SET GLOBAL event_scheduler = ON;"