www2mediakey EXCHANGE ZONEs ~/astroport/www/{audio video site} - recorded with youtube-dl sendto plugin

This commit is contained in:
fred 2021-08-12 02:55:40 +02:00
parent 8ac274bc96
commit fb25761233
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ mkdir -p ~/astroport/anime
## PREPARE www EXCHANGE ZONE ~/astroport/www
wwwuser=$(ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1) || wwuser="www-data"
mkdir -p ~/astroport/www
mkdir -p ~/astroport/www/audio
mkdir -p ~/astroport/www/video
mkdir -p ~/astroport/www/site
sudo chown -R $USER:$wwwuser ~/astroport/www
sudo chmod -R g+rw ~/astroport/www