summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames An2015-11-11 07:21:06 -0500
committerJames An2015-11-11 07:21:06 -0500
commit9bc827ea6293b1b0ea1117f14d20c4ca1ea42bef (patch)
tree92785c37779644106875acd3abe73bb993b04bc3
parent36fb191227e41d766d735c06a360ec886efa6d4b (diff)
downloadaur-9bc827ea6293b1b0ea1117f14d20c4ca1ea42bef.tar.gz
Added a few more aegir-related folders to the package manifest and fixed some folder permissions to values preferred by aegir.
-rw-r--r--PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 061e2861573..b5002a610ee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -68,12 +68,20 @@ package() {
msg2 'Creating $pkgname directory structure'
install --directory --owner=http --group=http --mode=6775 "$pkgdir/etc/drush" "$pkgdir/usr/share/webapps/$pkgname"
+ install --directory --owner=http --group=http --mode=0700 "$pkgdir/usr/share/webapps/$pkgname/.ssh"{,/ctrl-sockets}
+ mkdir -p "$pkgdir/srv/http"
+ ln -s /etc/drush "$pkgdir/srv/http/.drush"
+ ln -s /etc/drush "$pkgdir/etc/skel/.drush"
ln -s /etc/drush "$pkgdir/usr/share/webapps/$pkgname/.drush"
+ ln -s "$pkgdir/usr/share/webapps/$pkgname/.ssh" "$pkgdir/srv/http/.ssh"
+ umask 066
+ mkdir -p "$pkgdir/usr/share/webapps/$pkgname/"{config{,/{includes,server_{localhost,master{,/nginx}}}},clients}
umask 077
- mkdir -p "$pkgdir/usr/share/webapps/$pkgname/"{backups,clients/admin,config/{includes,self,server_master/nginx/{platform,post,pre,subdir,platform,vhost}.d}}
- umask 022
- mkdir -p "$pkgdir/usr/share/webapps/$pkgname/"{,config/{includes,self,server_localhost,server_master/nginx}}
-
+ mkdir -p "$pkgdir/usr/share/webapps/$pkgname/"{backups,config/{server_master/nginx/{platform,post,pre,subdir,platform,vhost}.d}}
+ umask 027
+ mkdir -p "$pkgdir/usr/share/webapps/$pkgname/"clients/admin
+ umask 007
+ mkdir -p "$pkgdir/usr/share/webapps/$pkgname/"config/self
ln -s "/usr/share/webapps/$pkgname/config/server_master/nginx.conf" "$pkgdir/usr/share/webapps/$pkgname/config/nginx.conf"
ln -s "/usr/share/webapps/$pkgname/config/includes/nginx_vhost_common.conf" "$pkgdir/usr/share/webapps/$pkgname/config/includes/nginx_advanced_include.conf"
ln -s "/usr/share/webapps/$pkgname/config/includes/nginx_vhost_common.conf" "$pkgdir/usr/share/webapps/$pkgname/config/includes/nginx_simple_include.conf"