python-faraday 422 Bytes
Newer Older
1 2
#!/bin/sh

3 4
aux_file_path="$HOME/.faraday/password_changed.txt"

5 6
systemctl start python-faraday
sleep 3
7 8 9 10 11 12 13 14 15
if [ ! -f $aux_file_path ]; then
    touch $aux_file_path
    cd /usr/share/python-faraday
    echo "Please, set a new password for the Faraday's default user 'faraday'"
    ./manage.py change-password
    ./faraday.py --login
else
    cd /usr/share/python-faraday && ./faraday.py "$@"
fi
16
systemctl stop python-faraday