feat: upgrade to latest alpine 3.19 and fdroid 2.2
This commit is contained in:
@ -2,14 +2,19 @@
|
||||
|
||||
set -xeo pipefail
|
||||
|
||||
if [ ! -f /fdroid/ssh_host_rsa_key ]; then
|
||||
if [ ! -f /fdroid/host_ssh/ssh_host_rsa_key ]; then
|
||||
echo "Generating host SSH key..."
|
||||
ssh-keygen -f /fdroid/ssh_host_rsa_key -N '' -t rsa
|
||||
chown fdroid: /fdroid/ssh_host_rsa_key
|
||||
mkdir -p /fdroid/host_ssh
|
||||
ssh-keygen -f /fdroid/host_ssh/ssh_host_rsa_key -N '' -t rsa
|
||||
chown fdroid: /fdroid/host_ssh/ssh_host_rsa_key
|
||||
fi
|
||||
|
||||
mkdir -p /fdroid/.ssh
|
||||
echo "${SSH_PUBLIC_KEY}" > /fdroid/.ssh/authorized_keys
|
||||
|
||||
if [ ! -z "${SSH_PUBLIC_KEY}" ]; then
|
||||
echo "${SSH_PUBLIC_KEY}" > /fdroid/.ssh/authorized_keys
|
||||
fi
|
||||
|
||||
chmod 0600 /fdroid/.ssh/authorized_keys
|
||||
|
||||
if [ ! -f /fdroid/keystore/keystore.jks ]; then
|
||||
@ -23,11 +28,11 @@ if [ ! -f /fdroid/keystore/keystore.jks ]; then
|
||||
fi
|
||||
|
||||
echo "Updating configuration from environment..."
|
||||
envsubst < config.py.tmpl > config.py
|
||||
chmod 0600 config.py
|
||||
envsubst < config.yml.tmpl > /fdroid/config.yml
|
||||
chmod 0600 /fdroid/config.yml
|
||||
|
||||
chown -R fdroid: /fdroid
|
||||
find /fdroid -not -user fdroid -exec chown -R fdroid: {} \;
|
||||
|
||||
su - fdroid /fdroid/fdroid-update.sh
|
||||
su fdroid /fdroid/fdroid-update.sh
|
||||
|
||||
/usr/bin/supervisord -c /etc/supervisor.d/supervisor.ini
|
Reference in New Issue
Block a user