www-data 10

This commit is contained in:
Valentin 2024-02-25 23:43:02 +01:00
parent d54817640c
commit 1b19ac4e31
1 changed files with 5 additions and 6 deletions

View File

@ -263,15 +263,15 @@ if [[ "$answer" == "y" ]]; then
echo \"SECRET='${secret}'\" >> ${env_file} &&\ echo \"SECRET='${secret}'\" >> ${env_file} &&\
echo \"KEY='${key}'\" >> ${env_file} &&\ echo \"KEY='${key}'\" >> ${env_file} &&\
echo \"CORS_ENABLED='true'\" >> ${env_file} &&\ echo \"CORS_ENABLED='true'\" >> ${env_file} &&\
echo \"CORS_ORIGIN='true'\" >> ${env_file} &&\ echo \"CORS_ORIGIN='true'\" >> ${env_file}" $username
cd ${cms_folder} &&\
npm init -y &&\
npx directus bootstrap --skipAdminInit" $username
echo "set -g default-shell /bin/sh" >> /etc/tmux.conf echo "set -g default-shell /bin/sh" >> /etc/tmux.conf
chown www-data:www-data /home/$username/$cms_folder chown www-data:www-data /home/$username/$cms_folder
su -s /bin/bash -c "tmux new-session -d -s directus &&\ su -s /bin/bash -c "cd /home/${username}/${cms_folder} &&\
npm init -y &&\
npx directus bootstrap --skipAdminInit &&\
tmux new-session -d -s directus &&\
tmux send-keys -t directus \"cd /home/${username}/${cms_folder} && npx directus start\" C-m" www-data tmux send-keys -t directus \"cd /home/${username}/${cms_folder} && npx directus start\" C-m" www-data
su -s /bin/bash -c "cd /home/${username}/${cms_folder} &&\ su -s /bin/bash -c "cd /home/${username}/${cms_folder} &&\
@ -359,7 +359,6 @@ if [[ "$answer" == "y" ]]; then
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 www-data:www-data /home/$username/.npm
chown -R www-data:www-data /home/$username/.nvm chown -R www-data:www-data /home/$username/.nvm
chown -R www-data:www-data /home/$username/$front_folder chown -R www-data:www-data /home/$username/$front_folder