diff --git a/scripts/upgrade b/scripts/upgrade index 5bfd8b1..ef98703 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,7 +115,7 @@ fi if [ -e /etc/ihatemoney/settings.py ]; then # Strip out the no longer used part of the settings - python2 -c "d = open('/etc/ihatemoney/settings.py').read().replace('try:\n from settings import *\nexcept ImportError:\n pass\n', ''); open('/etc/ihatemoney/settings.py', 'w').write(d)" + python3 -c "d = open('/etc/ihatemoney/settings.py').read().replace('try:\n from settings import *\nexcept ImportError:\n pass\n', ''); open('/etc/ihatemoney/settings.py', 'w').write(d)" # Rename mv /etc/ihatemoney/settings.py ${ihatemoney_conf_path} fi