A bash script for administrators of Friendica Communications Servers to update an existing installation via github. The script also allows to effortlessly switch branches, check version number, and update the server’s database structure.
Copy script to system, place in suitable location mv fusig.sh /usr/local/bin/
and make it executable with chmod +x fusig.sh
.
Run fusig.sh -c
to see current configuration and fusig.sh -e
to alter it if needed.
This script requires superuser permission if the user who runs the git command differs from the user who runs the composer install. In practice, if the composer user is set to the user under which you logged on to your Friendica installation, you will not require superuser permission.
fusig.sh [options]
Options:
-u [branch] override branch setting
-B update database structure
-f display Friendica versions
-c display script configuration
-e configure script
-h display this help and exit
Examples: fusig.sh
or fusig.sh -u master