Skip to content
Snippets Groups Projects
Commit dc4783f8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'mlong/installxtrndebug' into 'master'

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

See merge request !76
parents 6284e6b6 f0309eb8
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