1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pufferpanel_ynh.git synced 2024-09-03 20:16:03 +02:00
This commit is contained in:
liberodark 2019-01-05 16:34:34 +01:00
parent ad800cf010
commit 97a3bd9be1

View file

@ -34,7 +34,7 @@ uuid=$(cat /proc/sys/kernel/random/uuid)
time=$(php -r 'echo time();') time=$(php -r 'echo time();')
nodeSecret=$(cat /proc/sys/kernel/random/uuid) nodeSecret=$(cat /proc/sys/kernel/random/uuid)
nodeSecret=${nodeSecret^^} nodeSecret=${nodeSecret^^}
pufferdVersion=$(cat src/versions/pufferd) #pufferdVersion=$(cat src/versions/pufferd)
### If it's a multi-instance app, meaning it can be installed several times independently ### If it's a multi-instance app, meaning it can be installed several times independently
### The id of the app as stated in the manifest is available as $YNH_APP_ID ### The id of the app as stated in the manifest is available as $YNH_APP_ID
@ -135,7 +135,7 @@ ynh_mysql_execute_as_root "INSERT INTO users VALUES (NULL, '${uuid}', '$db_user'
ynh_mysql_execute_as_root " ynh_mysql_execute_as_root "
INSERT INTO nodes (name, location, fqdn, ip, daemon_secret,daemon_listen,daemon_sftp, allocate_memory, allocate_disk, ips, ports, public, docker) INSERT INTO nodes (name, location, fqdn, ip, daemon_secret,daemon_listen,daemon_sftp, allocate_memory, allocate_disk, ips, ports, public, docker)
VALUES('LocalNode', (SELECT id FROM locations WHERE short = 'Localhost'), '${siteUrl}', '127.0.0.1', '${nodeSecret}', 5656, 5657, 0, 0, '{}', '{}', 1, 0)" $db_name VALUES('LocalNode', (SELECT id FROM locations WHERE short = 'Localhost'), 'https://$domain$path', '127.0.0.1', '${nodeSecret}', 5656, 5657, 0, 0, '{}', '{}', 1, 0)" $db_name
#mysql -h ${mysqlHost} -P ${mysqlPort} -D ${mysqlDb} -u ${mysqlUser} --password="${mysqlPass}" -e " #mysql -h ${mysqlHost} -P ${mysqlPort} -D ${mysqlDb} -u ${mysqlUser} --password="${mysqlPass}" -e "
#INSERT INTO nodes (name, location, fqdn, ip, daemon_secret,daemon_listen,daemon_sftp, allocate_memory, allocate_disk, ips, ports, public, docker) #INSERT INTO nodes (name, location, fqdn, ip, daemon_secret,daemon_listen,daemon_sftp, allocate_memory, allocate_disk, ips, ports, public, docker)
#VALUES('LocalNode', (SELECT id FROM locations WHERE short = 'Localhost'), '${siteUrl}', '127.0.0.1', '${nodeSecret}', 5656, 5657, 0, 0, '{}', '{}', 1, 0)" #VALUES('LocalNode', (SELECT id FROM locations WHERE short = 'Localhost'), '${siteUrl}', '127.0.0.1', '${nodeSecret}', 5656, 5657, 0, 0, '{}', '{}', 1, 0)"