sintonia/install_minimal/upgrades/airtime-2.0.3/airtime-upgrade.php
2012-04-02 19:38:15 -04:00

51 lines
1.4 KiB
PHP

<?php
/**
* @package Airtime
* @subpackage StorageServer
* @copyright 2010 Sourcefabric O.P.S.
* @license http://www.gnu.org/licenses/gpl.txt
*/
/*
* In the future, most Airtime upgrades will involve just mutating the
* data that is stored on the system. For example, The only data
* we need to preserve between versions is the database, /etc/airtime, and
* /srv/airtime. Everything else is just binary files that can be removed/replaced
* with the new version of Airtime. Of course, the data may need to be in a new
* format, and that's what this upgrade script will be for.
*/
class AirtimeStorWatchedDirsUpgrade{
public static function start(){
}
}
/* This class deals with any modifications to config files in /etc/airtime
* as well as backups. All functions other than start() should be marked
* as private. */
class AirtimeConfigFileUpgrade{
public static function start(){
}
}
/* This class deals with any modifications to config files in /etc/airtime
* as well as backups. All functions other than start() should be marked
* as private. */
class AirtimeMiscUpgrade{
public static function start(){
self::modifyPypo();
}
public static function modifyPypo(){
echo "* Modifying User Pypo".PHP_EOL;
exec("usermod -s /bin/false pypo");
exec("passwd --delete pypo");
}
}
AirtimeConfigFileUpgrade::start();
AirtimeMiscUpgrade::start();