diff --git a/VERSION b/VERSION index df9515d6e..9770a9ddb 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ PRODUCT_ID=Airtime -PRODUCT_RELEASE=1.9.1 +PRODUCT_RELEASE=1.9.2 diff --git a/airtime_mvc/application/configs/constants.php b/airtime_mvc/application/configs/constants.php index 28db07932..9dd06d3ef 100644 --- a/airtime_mvc/application/configs/constants.php +++ b/airtime_mvc/application/configs/constants.php @@ -1,6 +1,6 @@ ServerAdmin foo@bar.org - DocumentRoot /var/www/airtime/public + DocumentRoot /usr/share/airtime/public php_admin_value upload_tmp_dir /tmp - + DirectoryIndex index.php AllowOverride all Order allow,deny diff --git a/install_minimal/include/AirtimeInstall.php b/install_minimal/include/AirtimeInstall.php index 50da8b498..e11dd7cf2 100644 --- a/install_minimal/include/AirtimeInstall.php +++ b/install_minimal/include/AirtimeInstall.php @@ -6,7 +6,7 @@ require_once('DB.php'); class AirtimeInstall { const CONF_DIR_BINARIES = "/usr/lib/airtime"; - const CONF_DIR_WWW = "/var/www/airtime"; + const CONF_DIR_WWW = "/usr/share/airtime/"; const CONF_DIR_LOG = "/var/log/airtime"; public static $databaseTablesCreated = false; diff --git a/install_minimal/upgrades/airtime-1.9.0/airtime-upgrade.php b/install_minimal/upgrades/airtime-1.9.0/airtime-upgrade.php index db7e97bb9..634353f52 100644 --- a/install_minimal/upgrades/airtime-1.9.0/airtime-upgrade.php +++ b/install_minimal/upgrades/airtime-1.9.0/airtime-upgrade.php @@ -577,14 +577,15 @@ class Airtime190Upgrade{ } - public static function removeOldAirtimeImport(){ + // we don't need thses functions anymore as it's done in CreateSymlinksToUtils() + /*public static function removeOldAirtimeImport(){ exec('rm -f "/usr/bin/airtime-import"'); } public static function updateAirtimeImportSymLink(){ $dir = "/usr/lib/airtime/utils/airtime-import/airtime-import"; exec("ln -s $dir /usr/bin/airtime-import"); - } + }*/ public static function execSqlQuery($sql){ global $CC_DBC; @@ -801,8 +802,9 @@ Airtime190Upgrade::CopyUtils(); /* James made a new airtime-import script, lets remove the old airtime-import php script, *install the new airtime-import.py script and update the /usr/bin/symlink. */ -Airtime190Upgrade::removeOldAirtimeImport(); -Airtime190Upgrade::updateAirtimeImportSymLink(); +// we don't need thses functions anymore as it's done in CreateSymlinksToUtils() +/*Airtime190Upgrade::removeOldAirtimeImport(); +Airtime190Upgrade::updateAirtimeImportSymLink();*/ Airtime190Upgrade::connectToDatabase(); diff --git a/install_minimal/upgrades/airtime-1.9.2/airtime-monit.cfg.192 b/install_minimal/upgrades/airtime-1.9.2/airtime-monit.cfg.192 new file mode 100644 index 000000000..22f05e2ca --- /dev/null +++ b/install_minimal/upgrades/airtime-1.9.2/airtime-monit.cfg.192 @@ -0,0 +1,23 @@ + set daemon 10 # Poll at 10 second intervals + set logfile syslog facility log_daemon + + set httpd port 2812 and use address 127.0.0.1 + allow localhost + allow admin:monit + + check process airtime-playout + with pidfile "/var/run/airtime-playout.pid" + start program = "/etc/init.d/airtime-playout start" with timeout 10 seconds + stop program = "/etc/init.d/airtime-playout stop" + check process airtime-liquidsoap + with pidfile "/var/run/airtime-liquidsoap.pid" + start program = "/etc/init.d/airtime-playout start" with timeout 10 seconds + stop program = "/etc/init.d/airtime-playout stop" +# check process airtime-media-monitor +# with pidfile "/var/run/airtime-media-monitor.pid" +# start program = "/etc/init.d/airtime-media-monitor start" with timeout 10 seconds +# stop program = "/etc/init.d/airtime-media-monitor stop" + check process airtime-show-recorder + with pidfile "/var/run/airtime-show-recorder.pid" + start program = "/etc/init.d/airtime-show-recorder start" with timeout 10 seconds + stop program = "/etc/init.d/airtime-show-recorder stop" diff --git a/install_minimal/upgrades/airtime-1.9.2/airtime-upgrade.php b/install_minimal/upgrades/airtime-1.9.2/airtime-upgrade.php new file mode 100644 index 000000000..27fb78ea4 --- /dev/null +++ b/install_minimal/upgrades/airtime-1.9.2/airtime-upgrade.php @@ -0,0 +1,171 @@ + \ No newline at end of file diff --git a/install_minimal/upgrades/airtime-1.9.2/airtime.conf.192 b/install_minimal/upgrades/airtime-1.9.2/airtime.conf.192 new file mode 100644 index 000000000..b9729ac97 --- /dev/null +++ b/install_minimal/upgrades/airtime-1.9.2/airtime.conf.192 @@ -0,0 +1,23 @@ +[database] +host = localhost +dbname = airtime +dbuser = airtime +dbpass = airtime + +[rabbitmq] +host = 127.0.0.1 +port = 5672 +user = guest +password = guest +vhost = / + +[general] +api_key = AAA +web_server_user = www-data +airtime_dir = /usr/share/airtime/ +base_url = localhost +base_port = 80 + +[soundcloud] +connection_retries = 3 +time_between_retries = 60 diff --git a/install_minimal/upgrades/airtime-1.9.2/api_client.cfg.192 b/install_minimal/upgrades/airtime-1.9.2/api_client.cfg.192 new file mode 100644 index 000000000..7c94e34c2 --- /dev/null +++ b/install_minimal/upgrades/airtime-1.9.2/api_client.cfg.192 @@ -0,0 +1,110 @@ +bin_dir = "/usr/lib/airtime/api_clients" + +############################# +## Common +############################# + +# Value needed to access the API +api_key = 'AAA' + +# Path to the base of the API +api_base = 'api' + +# URL to get the version number of the server API +version_url = 'version/api_key/%%api_key%%' + +# Hostname +base_url = 'localhost' +base_port = 80 + +############################# +## Config for Media Monitor +############################# + +# URL to setup the media monitor +media_setup_url = 'media-monitor-setup/format/json/api_key/%%api_key%%' + +# Tell Airtime the file id associated with a show instance. +upload_recorded = 'upload-recorded/format/json/api_key/%%api_key%%/fileid/%%fileid%%/showinstanceid/%%showinstanceid%%' + +# URL to tell Airtime to update file's meta data +update_media_url = 'reload-metadata/format/json/api_key/%%api_key%%/mode/%%mode%%' + +# URL to tell Airtime we want a listing of all files it knows about +list_all_db_files = 'list-all-files/format/json/api_key/%%api_key%%/dir_id/%%dir_id%%' + +# URL to tell Airtime we want a listing of all dirs its watching (including the stor dir) +list_all_watched_dirs = 'list-all-watched-dirs/format/json/api_key/%%api_key%%' + +# URL to tell Airtime we want to add watched directory +add_watched_dir = 'add-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%' + +# URL to tell Airtime we want to add watched directory +remove_watched_dir = 'remove-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%' + +# URL to tell Airtime we want to add watched directory +set_storage_dir = 'set-storage-dir/format/json/api_key/%%api_key%%/path/%%path%%' + + +############################# +## Config for Recorder +############################# + +# URL to get the schedule of shows set to record +show_schedule_url = 'recorded-shows/format/json/api_key/%%api_key%%' + +# URL to upload the recorded show's file to Airtime +upload_file_url = 'upload-file/format/json/api_key/%%api_key%%' + +#number of retries to upload file if connection problem +upload_retries = 3 + +#time to wait between attempts to upload file if connection problem (in seconds) +upload_wait = 60 + +################################################################################ +# Uncomment *one of the sets* of values from the API clients below, and comment +# out all the others. +################################################################################ + +############################# +## Config for Pypo +############################# + +# Schedule export path. +# %%from%% - starting date/time in the form YYYY-MM-DD-hh-mm +# %%to%% - starting date/time in the form YYYY-MM-DD-hh-mm +export_url = 'schedule/api_key/%%api_key%%' + +get_media_url = 'get-media/file/%%file%%/api_key/%%api_key%%' + +# Update whether a schedule group has begun playing. +update_item_url = 'notify-schedule-group-play/api_key/%%api_key%%/schedule_id/%%schedule_id%%' + +# Update whether an audio clip is currently playing. +update_start_playing_url = 'notify-media-item-start-play/api_key/%%api_key%%/media_id/%%media_id%%/schedule_id/%%schedule_id%%' + +# ??? +generate_range_url = 'generate_range_dp.php' + + +############## +# OBP config # +############## + +# URL to get the version number of the server API +#version_url = 'api/pypo/status/json' + +# Schedule export path. +# %%from%% - starting date/time in the form YYYY-MM-DD-hh-mm +# %%to%% - starting date/time in the form YYYY-MM-DD-hh-mm + +# Update whether an item has been played. +#update_item_url = 'api/pypo/update_shedueled_item/$$item_id%%?played=%%played%%' + +# Update whether an item is currently playing. +#update_start_playing_url = 'api/pypo/mod/medialibrary/?playlist_type=%%playlist_type%%&export_source=%%export_source%%&media_id=%%media_id%%&playlist_id=%%playlist_id%%&transmission_id=%%transmission_id%%' + +# ??? +#generate_range_url = 'api/pypo/generate_range_dp/' + diff --git a/install_minimal/upgrades/airtime-1.9.2/liquidsoap.cfg.192 b/install_minimal/upgrades/airtime-1.9.2/liquidsoap.cfg.192 new file mode 100644 index 000000000..ef4b26b62 --- /dev/null +++ b/install_minimal/upgrades/airtime-1.9.2/liquidsoap.cfg.192 @@ -0,0 +1,55 @@ +########################################### +# Liquidsoap config file # +########################################### + +########################################### +# Output settings # +########################################### +output_sound_device = false +output_icecast_vorbis = true +output_icecast_mp3 = false +output_shoutcast = false + +#output_bitrate = 128 +#output_samplerate = 44100 +#output_stereo = true + +########################################### +# Logging settings # +########################################### +log_file = "/var/log/airtime/pypo-liquidsoap/