|
|
@ -113,6 +113,19 @@ yunohost firewall allow TCP 50000:50100 |
|
|
setfacl -m g:$app:rx /var/www |
|
|
setfacl -m g:$app:rx /var/www |
|
|
setfacl -m g:$app.main:rx /var/www |
|
|
setfacl -m g:$app.main:rx /var/www |
|
|
|
|
|
|
|
|
|
|
|
#================================================= |
|
|
|
|
|
# GENERATE GLOBAL SSH KEY |
|
|
|
|
|
#================================================= |
|
|
|
|
|
|
|
|
|
|
|
ssh-keygen -t ed25519 -f /etc/yunohost/sshkey -q -N "" |
|
|
|
|
|
chmod 600 /etc/yunohost/sshkey |
|
|
|
|
|
setfacl -m g:$app.main:x /etc/yunohost |
|
|
|
|
|
setfacl -m g:$app.main:r /etc/yunohost/sshkey |
|
|
|
|
|
chown daemon /etc/yunohost/sshkey |
|
|
|
|
|
|
|
|
|
|
|
ssh-keyscan github.com >> /etc/ssh/known_hosts |
|
|
|
|
|
grep -qF 'GlobalKnownHostsFile /etc/ssh/known_hosts' /etc/ssh/ssh_config || echo ' GlobalKnownHostsFile /etc/ssh/known_hosts' >> /etc/ssh/ssh_config |
|
|
|
|
|
|
|
|
# Automatically add link to www folder to new users |
|
|
# Automatically add link to www folder to new users |
|
|
ln -s /var/www /etc/skel/www |
|
|
ln -s /var/www /etc/skel/www |
|
|
|
|
|
|
|
|
|