CC-3798: Upgrade from 1.9.0 to 2.1.0 in lucid: warning message
-fixed
This commit is contained in:
parent
532dd036c1
commit
ca4cbb0ce1
|
@ -21,6 +21,12 @@ if [ "$pypo" = "t" ]; then
|
||||||
python $AIRTIMEROOT/python_apps/pypo/install/pypo-initialize.py
|
python $AIRTIMEROOT/python_apps/pypo/install/pypo-initialize.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chmod 600 /etc/monit/conf.d/monit-airtime-generic.cfg
|
||||||
|
chmod 600 /etc/monit/conf.d/monit-airtime-liquidsoap.cfg
|
||||||
|
chmod 600 /etc/monit/conf.d/monit-airtime-media-monitor.cfg
|
||||||
|
chmod 600 /etc/monit/conf.d/monit-airtime-playout.cfg
|
||||||
|
chmod 600 /etc/monit/conf.d/monit-airtime-rabbitmq-server.cfg
|
||||||
|
|
||||||
# Start monit if it is not running, or restart if it is.
|
# Start monit if it is not running, or restart if it is.
|
||||||
# Need to ensure monit is running before Airtime daemons are run. This is
|
# Need to ensure monit is running before Airtime daemons are run. This is
|
||||||
# so we can ensure they can register with monit to monitor them when they start.
|
# so we can ensure they can register with monit to monitor them when they start.
|
||||||
|
|
|
@ -4,20 +4,9 @@
|
||||||
* config files goes here. */
|
* config files goes here. */
|
||||||
class AirtimeMiscUpgrade{
|
class AirtimeMiscUpgrade{
|
||||||
public static function start($p_ini){
|
public static function start($p_ini){
|
||||||
self::adjustMonitCfgPermissions();
|
|
||||||
self::adjustAirtimeStorPermissions($p_ini);
|
self::adjustAirtimeStorPermissions($p_ini);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function adjustMonitCfgPermissions(){
|
|
||||||
/* Make the read permission of Monit cfg files more strict */
|
|
||||||
|
|
||||||
chmod("/etc/monit/conf.d/monit-airtime-generic.cfg", 0600);
|
|
||||||
chmod("/etc/monit/conf.d/monit-airtime-liquidsoap.cfg", 0600);
|
|
||||||
chmod("/etc/monit/conf.d/monit-airtime-media-monitor.cfg", 0600);
|
|
||||||
chmod("/etc/monit/conf.d/monit-airtime-playout.cfg", 0600);
|
|
||||||
chmod("/etc/monit/conf.d/monit-airtime-rabbitmq-server.cfg", 0600);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function adjustAirtimeStorPermissions($p_ini){
|
public static function adjustAirtimeStorPermissions($p_ini){
|
||||||
/* Make the read permission of Monit cfg files more strict */
|
/* Make the read permission of Monit cfg files more strict */
|
||||||
$webUser = $p_ini["general"]["web_server_user"];
|
$webUser = $p_ini["general"]["web_server_user"];
|
||||||
|
|
Loading…
Reference in New Issue