Skip to content
Snippets Groups Projects
Commit f0309eb8 authored by Kayz's avatar Kayz
Browse files

Update install-xtrn.js, make it apparent that debug mode does not install the...

Update install-xtrn.js, make it apparent that debug mode does not install the door. Also do not recycle in debug mode (nothing was installed). 
parent 6284e6b6
No related branches found
No related tags found
No related merge requests found
// $Id: install-xtrn.js,v 1.14 2020/04/26 06:58:46 rswindell Exp $
// Installer for Synchronet External Programs
// This script parses a .ini file (default filename is install-xtrn.ini)
......@@ -562,8 +560,14 @@ for(var i in ini_list) {
else if (typeof result !== 'boolean')
alert(result);
}
print("Installed " + installed + " external programs.");
if(installed > 0) {
if (options.debug) {
print("Would have Installed " + installed + " external programs.");
print("No programs installed due to DEBUG mode.");
} else {
print("Installed " + installed + " external programs.");
}
if((installed > 0) && !options.debug) {
print("Requesting Synchronet recycle (configuration-reload)");
if(!file_touch(system.ctrl_dir + "recycle"))
alert("Recycle semaphore file update failure");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment