1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Dropping requirement on python2

Nitpicking…
This commit is contained in:
JocelynDelalande 2020-07-26 18:54:02 +02:00 committed by GitHub
parent e0b3522c91
commit bb8c70fff6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,7 +115,7 @@ fi
if [ -e /etc/ihatemoney/settings.py ]; then if [ -e /etc/ihatemoney/settings.py ]; then
# Strip out the no longer used part of the settings # 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 # Rename
mv /etc/ihatemoney/settings.py ${ihatemoney_conf_path} mv /etc/ihatemoney/settings.py ${ihatemoney_conf_path}
fi fi