1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/scripts/_common.sh
Jérôme Lebleu 9ae09c9f4e [enh] Download Movim source code with git with local helpers
Instead of using a git submodule attached to this app, the Movim source
code is downloaded using git - as suggested in the Movim Wiki. It fixes by
the way the upgrade which was broken before that.
It also adds `scripts/_common.sh` which defines common variables and
functions.
2016-07-10 17:39:51 +02:00

23 lines
418 B
Bash

#
# 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 "$@")
}