CC-4104: airtime-uninstall should not purge airtime database be default

-small fix
This commit is contained in:
Martin Konecny 2012-07-16 15:43:17 -04:00
parent 35d3d63e08
commit 832eafdea1
2 changed files with 2 additions and 1 deletions

View File

@ -151,6 +151,7 @@ if [ "$result" -eq "0" ]; then
elif [ "$result" -eq "1" -a "$reinstall" = "f" ]; then
echo " * Same version of Airtime already installed! Reusing database."
nodb='t'
overwrite='f'
elif [ "$result" -eq "2" ]; then
echo " * Previous version of Airtime already installed..will perform upgrade."
DO_UPGRADE="1"

View File

@ -19,7 +19,7 @@ def generate_liquidsoap_config(ss):
val = d[u'value']
val = val if len(val) > 0 else "0"
str_buffer = "%s = %s\n" % (key, val)
fh.write(str_buffer)
fh.write(str_buffer.encode('utf-8'))
fh.write('log_file = "/var/log/airtime/pypo-liquidsoap/<script>.log"\n')
fh.close()