www-data 10
This commit is contained in:
parent
d54817640c
commit
1b19ac4e31
11
install.sh
11
install.sh
|
@ -263,15 +263,15 @@ if [[ "$answer" == "y" ]]; then
|
|||
echo \"SECRET='${secret}'\" >> ${env_file} &&\
|
||||
echo \"KEY='${key}'\" >> ${env_file} &&\
|
||||
echo \"CORS_ENABLED='true'\" >> ${env_file} &&\
|
||||
echo \"CORS_ORIGIN='true'\" >> ${env_file} &&\
|
||||
cd ${cms_folder} &&\
|
||||
npm init -y &&\
|
||||
npx directus bootstrap --skipAdminInit" $username
|
||||
echo \"CORS_ORIGIN='true'\" >> ${env_file}" $username
|
||||
|
||||
echo "set -g default-shell /bin/sh" >> /etc/tmux.conf
|
||||
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
|
||||
|
||||
su -s /bin/bash -c "cd /home/${username}/${cms_folder} &&\
|
||||
|
@ -359,7 +359,6 @@ if [[ "$answer" == "y" ]]; then
|
|||
|
||||
mkdir /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/$front_folder
|
||||
|
||||
|
|
Loading…
Reference in New Issue