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:
commit
29687008ea
3 changed files with 26 additions and 2 deletions
14
conf/abantecart-deps.control
Normal file
14
conf/abantecart-deps.control
Normal 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.
|
|
@ -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é.
|
||||
|
||||
# Install dependency to convert tracks to a readable format for the browser
|
||||
sudo apt-get update
|
||||
sudo apt-get -y -qq install php5-mysql
|
||||
# sudo apt-get update
|
||||
# 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
|
||||
[[ ${#passwd} -gt 5 ]] || ynh_die \
|
||||
|
|
|
@ -12,4 +12,10 @@ ynh_mysql_drop_db $app
|
|||
sudo rm -rf /var/www/$app
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue