mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(docker): use aurweb-config to update AUR_CONFIG
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
0726a08677
commit
5b350bc361
4 changed files with 37 additions and 37 deletions
|
@ -9,17 +9,18 @@ done
|
|||
cp -vf conf/config.dev conf/config
|
||||
sed -i "s;YOUR_AUR_ROOT;$(pwd);g" conf/config
|
||||
|
||||
# Change database user/password.
|
||||
sed -ri "s/^;?(user) = .*$/\1 = aur/" conf/config
|
||||
sed -ri "s/^;?(password) = .*$/\1 = aur/" conf/config
|
||||
# Setup database.
|
||||
aurweb-config set database user 'aur'
|
||||
aurweb-config set database password 'aur'
|
||||
aurweb-config set database host 'localhost'
|
||||
aurweb-config set database socket '/var/lib/mysqld/mysqld.sock'
|
||||
aurweb-config unset database port
|
||||
|
||||
# Enable memcached.
|
||||
sed -ri 's/^(cache) = .+$/\1 = memcache/' conf/config
|
||||
|
||||
# Setup various location configurations.
|
||||
sed -ri "s;^(aur_location) = .+;\1 = ${AURWEB_PHP_PREFIX};" conf/config
|
||||
sed -ri "s|^(git_clone_uri_anon) = .+|\1 = ${AURWEB_PHP_PREFIX}/%s.git|" conf/config.defaults
|
||||
sed -ri "s|^(git_clone_uri_priv) = .+|\1 = ${AURWEB_SSHD_PREFIX}/%s.git|" conf/config.defaults
|
||||
# Setup some other options.
|
||||
aurweb-config set options cache 'memcache'
|
||||
aurweb-config set options aur_location "$AURWEB_PHP_PREFIX"
|
||||
aurweb-config set options git_clone_uri_anon "${AURWEB_PHP_PREFIX}/%s.git"
|
||||
aurweb-config set options git_clone_uri_priv "${AURWEB_SSHD_PREFIX}/%s.git"
|
||||
|
||||
# Listen on :9000.
|
||||
sed -ri 's/^(listen).*/\1 = 0.0.0.0:9000/' /etc/php/php-fpm.d/www.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue