mirror of
https://github.com/YunoHost-Apps/phpldapadmin_ynh.git
synced 2024-09-03 19:56:45 +02:00
Fix package_linter error
This commit is contained in:
parent
785706fb26
commit
ead4114aed
3 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ ynh_webpath_register $app $domain $path
|
|||
# Copy files to the right place
|
||||
version=$(cat upstream_version)
|
||||
final_path=/var/www/$app
|
||||
sudo rm -rf $final_path
|
||||
sudo ynh_secure_remove --file=$final_path
|
||||
sudo mkdir -p $final_path
|
||||
echo "Downloading phpLDAPadmin $version..."
|
||||
sudo wget -O ../phpLDAPadmin.tar.gz http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php%35/$version/phpldapadmin-$version.tgz/download > /dev/null 2>&1
|
||||
|
|
|
@ -12,7 +12,7 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
domain=$(ynh_app_setting_get "$app" domain)
|
||||
|
||||
# Remove conf and app
|
||||
sudo rm -rf /var/www/phpldapadmin
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo ynh_secure_remove --file=/var/www/phpldapadmin
|
||||
sudo ynh_secure_remove --file=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
sudo service nginx reload
|
||||
|
|
|
@ -19,7 +19,7 @@ path=$(ynh_normalize_url_path $path)
|
|||
# Copy files to the right place
|
||||
version=$(cat upstream_version)
|
||||
final_path=/var/www/$app
|
||||
sudo rm -rf $final_path
|
||||
sudo ynh_secure_remove --file=$final_path
|
||||
sudo mkdir -p $final_path
|
||||
echo "Downloading phpLDAPadmin $version..."
|
||||
sudo wget -O ../phpLDAPadmin.tar.gz http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php%35/$version/phpldapadmin-$version.tgz/download > /dev/null 2>&1
|
||||
|
|
Loading…
Reference in a new issue