mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Use apt package helpers on i/r/u
This commit is contained in:
parent
297b38e371
commit
af6245e04f
3 changed files with 9 additions and 2 deletions
|
@ -59,7 +59,7 @@ db_name=movim
|
|||
ynh_mysql_create_db "$db_name" "$db_user" "$db_pwd"
|
||||
|
||||
# Install packages
|
||||
ynh_package_install php5-gd php5-curl php5-imagick php5-cli php5-zmq
|
||||
ynh_install_app_dependencies php5-gd php5-curl php5-imagick php5-cli php5-zmq
|
||||
|
||||
# Download Movim source code
|
||||
tmp_path=/tmp/movim-git
|
||||
|
|
|
@ -29,6 +29,13 @@ else
|
|||
sudo rm -f /etc/init.d/movim
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# REMOVE DEPENDENCIES
|
||||
#=================================================
|
||||
|
||||
# Remove metapackage and its dependencies
|
||||
ynh_remove_app_dependencies
|
||||
|
||||
# Drop MySQL database and user
|
||||
db_user=movim
|
||||
db_name=movim
|
||||
|
|
|
@ -24,7 +24,7 @@ timezone=`cat /etc/timezone`
|
|||
&& echo "Detected timezone: $timezone"
|
||||
|
||||
# Since Movim 0.13, zmq is required
|
||||
ynh_package_install php5-zmq
|
||||
ynh_install_app_dependencies php5-zmq
|
||||
|
||||
# Init git repository as needed
|
||||
if [ ! -d "${DESTDIR}/.git" ]; then
|
||||
|
|
Loading…
Reference in a new issue