mirror of
https://github.com/YunoHost-Apps/pufferpanel_ynh.git
synced 2024-09-03 20:16:03 +02:00
commit
7c1526c7d6
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,3 @@
|
||||||
-- Disable Foreign keys to avoid errors in dropping
|
|
||||||
SET FOREIGN_KEY_CHECKS = 0;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `acp_settings` (
|
CREATE TABLE IF NOT EXISTS `acp_settings` (
|
||||||
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
|
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`setting_ref` varchar(25) NOT NULL,
|
`setting_ref` varchar(25) NOT NULL,
|
||||||
|
|
|
@ -117,7 +117,10 @@ db_user=$db_name
|
||||||
|
|
||||||
echo "Creating pufferpanel account and installing database..."
|
echo "Creating pufferpanel account and installing database..."
|
||||||
#mysql -h localhost -P 3306 -u $db_name --password="$db_pwd" < ..config/install.sql
|
#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;"
|
#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;"
|
ynh_mysql_connect_as $db_user $db_pwd <<< "SET GLOBAL event_scheduler = ON;"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue