# # Common variables # # Git repository of Movim GIT_REPO="https://github.com/movim/movim" # Commit to checkout HEAD_COMMIT="512523576b03c2c8952305e70681ed31172b9fd2" # Source code destination directory DESTDIR="/var/www/movim" # # Common helpers # # Execute a command as movim user in the destination directory # usage: exec_cmd COMMAND [ARG ...] exec_cmd() { (cd "$DESTDIR" \ && sudo sudo -u movim "$@") }