User Tools

Site Tools


os:linux:powerdns-admin_update

This is an old revision of the document!


PowerDNS-Admin Update

Change to the PowerDNS-Admin parent directory.

cd /opt/python/

Create a backup.

cp -rp powerdns-admin{,.$(date --iso-8601)}

Change to the PowerDNS-Admin directory.

cd powerdns-admin

Activate the Python virtual environment.

. venv/bin/activate

Change to the app directory.

cd app

Get the latest update.

git pull --rebase

Update pip.

pip install -U pip

Update python modules.

pip install -Ur requirements.txt

Update Flask components and database.

export FLASK_CONF=/opt/python/powerdns-admin/app/config.py
export FLASK_APP=powerdnsadmin/__init__.py
flask assets build
flask db upgrade

Rebuild JavaScript components.

yarn install --pure-lockfile

Correct permissions.

chown -R httpd:httpd /opt/python/powerdns-admin/

Restart service.

systemctl restart uwsgi@powerdns-admin.service
os/linux/powerdns-admin_update.1610117045.txt.gz · Last modified: 2021-01-08 15:44 by Manuel Frei