Result removal functionnal

This commit is contained in:
echarp 2022-11-07 09:57:42 +01:00
parent a53df295f9
commit 0eb85713ce
2 changed files with 6 additions and 2 deletions

View File

@ -25,7 +25,7 @@ choose() {
chgrp -R www-data "../content/users/$user${target%/*}/"
# Delete former result files
rm "$dir/*.result"
rm "$dir"/*.result
# Generate a result file
echo "$target" > "$dir/$page.result"

View File

@ -1,12 +1,16 @@
ServerSignature Off
<VirtualHost *:80>
ServerName acoeur
Protocols h2 h2c http/1.1
DocumentRoot /var/simpleWeb/apps/acoeur/public
</VirtualHost>
<VirtualHost *:80>
ServerName edit.acoeur
ServerSignature Off
Protocols h2 h2c http/1.1
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Methods "HEAD, GET, POST, PUT, OPTIONS, DELETE"
Header add Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, API-Key, Authorization, X-Test"