www-data 13

This commit is contained in:
Valentin 2024-02-26 00:13:52 +01:00
parent 0fe9102e6f
commit e1c052c02e
1 changed files with 9 additions and 7 deletions

View File

@ -200,7 +200,7 @@ if [[ "$answer" == "y" ]]; then
ln -sf /home/$username/.nvm/versions/node/v18.19.1/bin/npm /usr/bin/npm
ln -sf /home/$username/.nvm/versions/node/v18.19.1/bin/npx /usr/bin/npx
mkdir /var/www/.npm
chown -R 33:33 /var/www/.npm
chown -R www-data:www-data /var/www/.npm
echo -e "${PURPLE}${BOLD}Node installed${RESET}";
fi
@ -357,16 +357,18 @@ if [[ "$answer" == "y" ]]; then
echo \"URL=https://${domain_name}\" >> .env &&\
echo \"DIRECTUS_URL=https://cms.${domain_name}\" >> .env" $username
su -s /bin/bash -c "tmux send-keys -t directus C-c" www-data
su -c "cd /home/${username}/${front_folder} &&\
npm install" $username
mkdir /var/www/.nuxtrc
chown -R www-data:www-data /var/www/.nuxtrc
chown -R 33:33 /home/$username/.nvm
chown -R 33:33 /home/$username/.npm
chown -R www-data:www-data /home/$username/.nvm
chown -R www-data:www-data /home/$username/.npm
chown -R www-data:www-data /home/$username/$front_folder
su -s /bin/bash -c "cd /home/${username}/${front_folder} &&\
tmux send-keys -t directus C-c &&\
npm install &&\
NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\" &&\
su -s /bin/bash -c "NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\" &&\
tmux new-session -d -s front &&\
tmux send-keys -t front \"cd /home/${username}/${front_folder} && node .output/server/index.mjs\" C-m &&\
tmux send-keys -t directus \"npx directus start\" C-m" www-data