www-data 13
This commit is contained in:
parent
0fe9102e6f
commit
e1c052c02e
16
install.sh
16
install.sh
|
@ -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/npm /usr/bin/npm
|
||||||
ln -sf /home/$username/.nvm/versions/node/v18.19.1/bin/npx /usr/bin/npx
|
ln -sf /home/$username/.nvm/versions/node/v18.19.1/bin/npx /usr/bin/npx
|
||||||
mkdir /var/www/.npm
|
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}";
|
echo -e "${PURPLE}${BOLD}Node installed${RESET}";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -357,16 +357,18 @@ if [[ "$answer" == "y" ]]; then
|
||||||
echo \"URL=https://${domain_name}\" >> .env &&\
|
echo \"URL=https://${domain_name}\" >> .env &&\
|
||||||
echo \"DIRECTUS_URL=https://cms.${domain_name}\" >> .env" $username
|
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
|
mkdir /var/www/.nuxtrc
|
||||||
chown -R www-data:www-data /var/www/.nuxtrc
|
chown -R www-data:www-data /var/www/.nuxtrc
|
||||||
chown -R 33:33 /home/$username/.nvm
|
chown -R www-data:www-data /home/$username/.nvm
|
||||||
chown -R 33:33 /home/$username/.npm
|
chown -R www-data:www-data /home/$username/.npm
|
||||||
chown -R www-data:www-data /home/$username/$front_folder
|
chown -R www-data:www-data /home/$username/$front_folder
|
||||||
|
|
||||||
su -s /bin/bash -c "cd /home/${username}/${front_folder} &&\
|
su -s /bin/bash -c "NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\" &&\
|
||||||
tmux send-keys -t directus C-c &&\
|
|
||||||
npm install &&\
|
|
||||||
NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\" &&\
|
|
||||||
tmux new-session -d -s front &&\
|
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 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
|
tmux send-keys -t directus \"npx directus start\" C-m" www-data
|
||||||
|
|
Loading…
Reference in New Issue