forked from scossa/StreamingCommunity
fix permessi
This commit is contained in:
@@ -14,11 +14,9 @@ nano make_index.sh
|
||||
# oppure mettilo in cron
|
||||
0 0 * * * /path/to/make_index.sh
|
||||
```
|
||||
#### 1.2 Se vuoi pubblicarla sul web, mettila dietro un reverseproxy e deccommenta il comando che da i permessi alla cartella con lo script:
|
||||
```
|
||||
sudo chown -R www-data:www-data $PWD_SC; sudo chmod -R 755 $PWD_SC
|
||||
```
|
||||
Se vuoi pubblicarla sul web: aggiusta la variabile <code>PWD_SC</code> in testa allo script <code>make_index.sh</code>, deccommenta i comandi in fondo allo script e metti la tua cartella (quella che hai messo in <code>PWD_SC</code>) dietro a un reverse proxy
|
||||
|
||||
<br>
|
||||
|
||||
#### 2. Crea un feed rss con il link (richiede "attuale.txt"):
|
||||
```
|
||||
|
||||
@@ -120,4 +120,10 @@ _EOF
|
||||
./make_stats.sh
|
||||
|
||||
# Da i permessi alla cartella (decommentare se hostato)
|
||||
#chmod +x $PWD_SC ; chmod -R 744 $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.json; chown root:root ./*.sh; chmod 740 ./*.sh
|
||||
#chown -R root:root $PWD_SC; echo "cartella di root"
|
||||
#chmod +x $PWD_SC ; echo "permetto di leggere dentro a $PWD_SC"
|
||||
#chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file"
|
||||
#chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html"
|
||||
#chown -R www-data:www-data $PWD_SC/*.json; chmod -R 744 $PWD_SC/*.json; echo "do i permessi ai json"
|
||||
#chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml"
|
||||
#chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh"
|
||||
|
||||
@@ -118,4 +118,9 @@ cat <<- _EOF > $PWD_SC/index.html
|
||||
_EOF
|
||||
|
||||
# Da i permessi alla cartella (decommentare se hostato)
|
||||
#chmod +x $PWD_SC ; chmod -R 744 $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.json; chown root:root ./*.sh; chmod 740 ./*.sh
|
||||
#chown -R root:root $PWD_SC; echo "cartella di root"
|
||||
#chmod +x $PWD_SC ; echo "permetto di leggere dentro a $PWD_SC"
|
||||
#chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file"
|
||||
#chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml"
|
||||
#chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html"
|
||||
#chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh"
|
||||
Reference in New Issue
Block a user