we are home

This commit is contained in:
fred 2021-08-11 20:32:01 +02:00
parent 472b4eee90
commit 5c3a7c17b7
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ sed -i "s/_G1PUB_/$G1PUB/g" $wiki
if [[ ! -d /home/$YOU/astroport/www ]]; then
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 /home/$YOU/astroport/www
sudo chown -R $YOU:$wwwuser /home/$YOU/astroport/www
sudo chmod -R g+rw /home/$YOU/astroport/www
chown -R $YOU:$wwwuser /home/$YOU/astroport/www
chmod -R g+rw /home/$YOU/astroport/www
fi
########################################################################
###