mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
9ae09c9f4e
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.
23 lines
418 B
Bash
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 "$@")
|
|
}
|