CC-2725: /etc/airtime/liquidsoap.cfg should not be world-readable
-done
This commit is contained in:
parent
611630d4eb
commit
eed9aa5b88
2 changed files with 25 additions and 1 deletions
15
install_minimal/upgrades/airtime-1.9.4/airtime-upgrade.php
Normal file
15
install_minimal/upgrades/airtime-1.9.4/airtime-upgrade.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
class Airtime194Upgrade{
|
||||
|
||||
const CONF_FILE_LIQUIDSOAP = "/etc/airtime/liquidsoap.cfg";
|
||||
const CONF_PYPO_GRP = "pypo";
|
||||
|
||||
public static function upgradeLiquidsoapCfgPerms(){
|
||||
chmod(self::CONF_FILE_LIQUIDSOAP, 0640);
|
||||
chgrp(self::CONF_FILE_LIQUIDSOAP, self::CONF_PYPO_GRP);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Airtime194Upgrade::upgradeLiquidsoapCfgPerms();
|
Loading…
Add table
Add a link
Reference in a new issue