Update the source code in
/var/www/2fauth (see Get the source code)
Do not change the
/var/www/2fauth/storage directory nor your
/var/www/2fauth/database/database.sqlite file (when using SQLite)
Then run the following commands:
php composer.phar install php artisan cache:clear php artisan config:clear php artisan migrate php artisan passport:install php artisan config:cache php artisan route:cache
When using SQLite
At the very least, backup your
database.sqlite file to avoid bad surprises!
The Docker image
is built on every commit pushed to the
You can therefore pull the image with
docker pull 2fauth/2fauth and restart the container to update it.
You can also use tagged images, see Docker Hub tags, which are produced on Github releases.
- Open the System update manager from the Yunohost Admin
- In the Applications section, click the 2FAuth button
- Wait for the installer to complete its job
You can also upgrade using the YunoHost command-line:
yunohost app upgrade 2fauth