1
0
Fork 0
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:
yalh76 2019-05-23 22:51:00 +02:00
parent 785706fb26
commit ead4114aed
3 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ ynh_webpath_register $app $domain $path
# Copy files to the right place # Copy files to the right place
version=$(cat upstream_version) version=$(cat upstream_version)
final_path=/var/www/$app final_path=/var/www/$app
sudo rm -rf $final_path sudo ynh_secure_remove --file=$final_path
sudo mkdir -p $final_path sudo mkdir -p $final_path
echo "Downloading phpLDAPadmin $version..." 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 sudo wget -O ../phpLDAPadmin.tar.gz http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php%35/$version/phpldapadmin-$version.tgz/download > /dev/null 2>&1

View file

@ -12,7 +12,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get "$app" domain) domain=$(ynh_app_setting_get "$app" domain)
# Remove conf and app # Remove conf and app
sudo rm -rf /var/www/phpldapadmin sudo ynh_secure_remove --file=/var/www/phpldapadmin
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf sudo ynh_secure_remove --file=/etc/nginx/conf.d/$domain.d/$app.conf
sudo service nginx reload sudo service nginx reload

View file

@ -19,7 +19,7 @@ path=$(ynh_normalize_url_path $path)
# Copy files to the right place # Copy files to the right place
version=$(cat upstream_version) version=$(cat upstream_version)
final_path=/var/www/$app final_path=/var/www/$app
sudo rm -rf $final_path sudo ynh_secure_remove --file=$final_path
sudo mkdir -p $final_path sudo mkdir -p $final_path
echo "Downloading phpLDAPadmin $version..." 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 sudo wget -O ../phpLDAPadmin.tar.gz http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php%35/$version/phpldapadmin-$version.tgz/download > /dev/null 2>&1