From 97a3bd9be1b692af866506171045a57f527fcac1 Mon Sep 17 00:00:00 2001 From: liberodark Date: Sat, 5 Jan 2019 16:34:34 +0100 Subject: [PATCH] fix --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 7d07958..3cb9d7a 100644 --- a/scripts/install +++ b/scripts/install @@ -34,7 +34,7 @@ uuid=$(cat /proc/sys/kernel/random/uuid) time=$(php -r 'echo time();') nodeSecret=$(cat /proc/sys/kernel/random/uuid) 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 ### 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 " 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 " #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)"