www-data 2
This commit is contained in:
parent
394c2dfb21
commit
34452f507a
10
install.sh
10
install.sh
|
@ -268,10 +268,10 @@ if [[ "$answer" == "y" ]]; then
|
|||
echo "set -g default-shell /bin/sh" >> /etc/tmux.conf
|
||||
chown www-data:www-data /home/$username/$cms_folder
|
||||
|
||||
su -c "tmux new-session -d -s directus &&\
|
||||
su -s /bin/bash -c "tmux new-session -d -s directus &&\
|
||||
tmux send-keys -t directus \"cd /home/${username}/${cms_folder} && npx directus start\" C-m" www-data
|
||||
|
||||
su -c "cd /home/${username}/${cms_folder} &&\
|
||||
su -s /bin/bash -c "cd /home/${username}/${cms_folder} &&\
|
||||
npx directus roles create --role Administrator --admin true &&\
|
||||
npx directus roles create --role Website &&\
|
||||
npx directus roles create --role User" www-data
|
||||
|
@ -285,7 +285,7 @@ if [[ "$answer" == "y" ]]; then
|
|||
|
||||
website_password=$(head -c 16 /dev/urandom | od -An -tx1 | tr -d ' \n')
|
||||
|
||||
su -c "cd /home/${username}/${cms_folder} &&\
|
||||
su -s /bin/bash -c "cd /home/${username}/${cms_folder} &&\
|
||||
npx directus users create --email \"${directus_admin_email}\" \
|
||||
--password \"${directus_admin_password}\" --role \"${admin_role_uuid}\" &&\
|
||||
npx directus users create --email \"website@${domain_name}\" --password \"${website_password}\" --role \"${website_role_uuid}\"" www-data
|
||||
|
@ -312,7 +312,7 @@ if [[ "$answer" == "y" ]]; then
|
|||
echo -e "${PURPLE}${BOLD}Press any key when done${RESET}"
|
||||
read
|
||||
|
||||
su -c "cd /home/${username}/${cms_folder} &&\
|
||||
su -s /bin/bash -c "cd /home/${username}/${cms_folder} &&\
|
||||
npx directus schema apply --yes ../snapshot.yaml" www-data
|
||||
|
||||
echo -e "${PURPLE}${BOLD}You can now add some content${RESET}"
|
||||
|
@ -356,7 +356,7 @@ if [[ "$answer" == "y" ]]; then
|
|||
|
||||
chown -R www-data:www-data /home/$username/$front_folder
|
||||
|
||||
su -c "cd /home/${username} &&\
|
||||
su -s /bin/bash -c "cd /home/${username} &&\
|
||||
tmux send-keys -t directus C-c &&\
|
||||
npm install &&\
|
||||
NUXT_TELEMETRY_DISABLED=1 bash -c \"npm run build\" &&\
|
||||
|
|
Loading…
Reference in New Issue