Skip to content

Commit 8a987d1

Browse files
committed
php-fpm.service.d.ncp.conf.sh: Allow php processes to write to /etc
1 parent a8af06c commit 8a987d1

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

etc/ncp-templates/systemd/php-fpm.service.d.ncp.conf.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ else
3535
[Service]
3636
ReadWritePaths=/usr/local/etc/ncp-config.d
3737
ReadWritePaths=/var/www/ncp-web
38+
ProtectSystem=yes
3839
EOF
3940
fi

ncp-web/activate/JS.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ function seturl_ok_cb( result )
5858
+ '"USER" : "ncp" }',
5959
csrf_token: $( '#csrf-token' ).get( '.value' ) }
6060
).then( nc_admin_ok_cb ).error( errorMsg );
61+
} else {
62+
$('#error-box').fill( ret.output ? ret.output : "Error setting url. Please reload and try again." );
6163
}
6264
}
6365

0 commit comments

Comments
 (0)