mirror of
https://github.com/YunoHost-Apps/phpsysinfo_ynh.git
synced 2024-09-03 19:56:43 +02:00
error correction
This commit is contained in:
parent
e7ec50b2a2
commit
b93a9b9617
3 changed files with 3 additions and 9 deletions
|
@ -18,7 +18,7 @@
|
|||
"multi_instance": "false",
|
||||
"services": [
|
||||
"nginx",
|
||||
"php5-fpm",
|
||||
"php5-fpm"
|
||||
],
|
||||
"arguments": {
|
||||
"install" : [
|
||||
|
|
|
@ -27,10 +27,10 @@ if [[ ! $? -eq 0 ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Copy files to the right place
|
||||
# Copy source files
|
||||
final_path=/var/www/$app
|
||||
sudo mkdir -p $final_path
|
||||
sudo cp -a ../sources/* $final_path
|
||||
sudo cp -a ../sources/. $final_path
|
||||
|
||||
# Create configuration file
|
||||
cp $final_path/phpsysinfo.ini.new $final_path/phpsysinfo.ini
|
||||
|
|
|
@ -21,11 +21,5 @@ sudo rm -rf /var/www/$app
|
|||
# Remove configuration files
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/phpsysinfo.conf
|
||||
|
||||
# If app is public, delete url to SSOWat
|
||||
if [[ $is_public -eq 1 ]];
|
||||
then
|
||||
ynh_app_setting_delete "$app" skipped_uris
|
||||
fi
|
||||
|
||||
# Restart services
|
||||
sudo service nginx reload
|
Loading…
Add table
Reference in a new issue