directus tmux et caddy 15
This commit is contained in:
parent
4486a57079
commit
685bc207bb
12
install.sh
12
install.sh
|
@ -262,10 +262,20 @@ if [[ "$answer" == "y" ]]; then
|
|||
su -c "tmux new-session -d -s ${session} &&\
|
||||
tmux send-keys -t ${session} \"cd /home/${username}/${cms_folder} && npx directus start\" C-m" $username
|
||||
|
||||
su -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" $username
|
||||
|
||||
admin_role_uuid=$(echo $(mariadb -u directus -p${db_directus_password} \
|
||||
-e "select id from directus.directus_roles where name='Administrator'") | awk '{print $2}')
|
||||
website_role_uuid=$(echo $(mariadb -u directus -p${db_directus_password} \
|
||||
-e "select id from directus.directus_roles where name='Website'") | awk '{print $2}')
|
||||
user_role_uuid=$(echo $(mariadb -u directus -p${db_directus_password} \
|
||||
-e "select id from directus.directus_roles where name='User'") | awk '{print $2}')
|
||||
|
||||
su -c "cd "/home/${username}/${cms_folder}" &&\
|
||||
|
||||
su -c "cd /home/${username}/${cms_folder} &&\
|
||||
npx directus users create --email \"${directus_admin_email}\" \
|
||||
--password \"${directus_admin_password}\" --role \"${admin_role_uuid}\"" $username
|
||||
|
||||
|
|
Loading…
Reference in New Issue