diff --git a/make_index.sh b/make_index.sh index 7cd91c9..684cf27 100755 --- a/make_index.sh +++ b/make_index.sh @@ -120,4 +120,4 @@ _EOF ./make_stats.sh # Da i permessi alla cartella (decommentare se hostato) -#sudo chown -R www-data:www-data $PWD_SC ; sudo chmod -R 755 $PWD_SC \ No newline at end of file +#chmod +x $PWD_SC ; chmod -R 744 $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.json; chown root:root ./*.sh; chmod 740 ./*.sh \ No newline at end of file diff --git a/make_index_without_stats.sh b/make_index_without_stats.sh old mode 100644 new mode 100755 index a22e202..57cd053 --- a/make_index_without_stats.sh +++ b/make_index_without_stats.sh @@ -118,4 +118,4 @@ cat <<- _EOF > $PWD_SC/index.html _EOF # Da i permessi alla cartella (decommentare se hostato) -#sudo chown -R www-data:www-data $PWD_SC ; sudo chmod -R 755 $PWD_SC \ No newline at end of file +#chmod +x $PWD_SC ; chmod -R 744 $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.json; chown root:root ./*.sh; chmod 740 ./*.sh \ No newline at end of file diff --git a/make_stats.sh b/make_stats.sh index 752960d..81da27c 100755 --- a/make_stats.sh +++ b/make_stats.sh @@ -26,3 +26,5 @@ sed -i 's/\.php/[.]php/g' userViewer.json sed -i 's/\.py/[.]py/g' userVieweOperation.json sed -i 's/\.py/[.]py/g' userViewer.json +sed -i 's/\[\.]json/.json/g' stats1.html +sed -i 's/\[\.]json/.json/g' stats2.html \ No newline at end of file