CC-2166 Packaging improvements
Added command line options to the install process to overwrite or preserve the existing config files. Added the pypo-start/stop and recorder-start/stop symlinks to /usr/bin. Renamed pypo-start.py to airtime-pypo-start. Renamed pypo-stop.py to airtime-pypo-stop. Renamed recorder-start.py to airtime-show-recorder-start. Renamed recorder-stop.py to airtime-show-recorder-stop. Renamed testrecordscript.py to recorder.py
This commit is contained in:
parent
2b90008ef2
commit
173d82007f
14 changed files with 75 additions and 21 deletions
|
@ -28,8 +28,7 @@ class AirtimeIni
|
|||
const CONF_FILE_RECORDER = "/etc/airtime/recorder.cfg";
|
||||
const CONF_FILE_LIQUIDSOAP = "/etc/airtime/liquidsoap.cfg";
|
||||
|
||||
|
||||
public static function ExitIfIniFilesExist()
|
||||
public static function IniFilesExist()
|
||||
{
|
||||
$configFiles = array(AirtimeIni::CONF_FILE_AIRTIME,
|
||||
AirtimeIni::CONF_FILE_PYPO,
|
||||
|
@ -42,14 +41,7 @@ class AirtimeIni
|
|||
$exist = true;
|
||||
}
|
||||
}
|
||||
if ($exist) {
|
||||
echo PHP_EOL."Existing config files will be overwritten. Do you want to continue? (y/N) ";
|
||||
$response = trim(fgets(STDIN));
|
||||
if ($response != "Y" && $response != "y") {
|
||||
echo "Install process stopped.".PHP_EOL.PHP_EOL;
|
||||
exit();
|
||||
}
|
||||
}
|
||||
return $exist;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue