1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/abantecart_ynh.git synced 2024-09-03 18:06:16 +02:00

Merge pull request #3 from polytan02/patch-1

Use of ynh_package_install_from_equivs
This commit is contained in:
frju365 2017-02-24 16:40:23 +01:00 committed by GitHub
commit 29687008ea
3 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,14 @@
Section: misc
Priority: optional
Homepage: http://www.abantecart.com/
Standards-Version: 1.2.9
Package: cops-deps
Version: 1.2-1
Depends: php5-mysql
Architecture: all
Description: meta package for abantecart dependencies
The Most Powerful eCommerce Platform to Sell anything.
.
.
This meta-package is only responsible of installing its dependencies.

View file

@ -28,8 +28,12 @@ CHECK_DOMAINPATH # Vérifie la disponibilité du path et du domaine.
CHECK_FINALPATH # Vérifie que le dossier de destination n'est pas déjà utilisé. CHECK_FINALPATH # Vérifie que le dossier de destination n'est pas déjà utilisé.
# Install dependency to convert tracks to a readable format for the browser # Install dependency to convert tracks to a readable format for the browser
sudo apt-get update # sudo apt-get update
sudo apt-get -y -qq install php5-mysql # sudo apt-get -y -qq install php5-mysql
# Install dependencies using Helpers
ynh_package_install_from_equivs ../conf/abantecart-deps.control \
|| ynh_die "Unable to install dependencies"
# Check password strength # Check password strength
[[ ${#passwd} -gt 5 ]] || ynh_die \ [[ ${#passwd} -gt 5 ]] || ynh_die \

View file

@ -12,4 +12,10 @@ ynh_mysql_drop_db $app
sudo rm -rf /var/www/$app sudo rm -rf /var/www/$app
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
# Remove app dependencies
if ynh_package_is_installed "abantecart-deps"; then
ynh_package_autoremove "abantecart-deps"
fi
sudo service nginx reload sudo service nginx reload