mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
clenaup bootstrap a bit
This commit is contained in:
parent
07c0f477e1
commit
666b58a773
5 changed files with 97 additions and 109 deletions
65
nix/image/scripts/nc-auto-config
Executable file
65
nix/image/scripts/nc-auto-config
Executable file
|
|
@ -0,0 +1,65 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
touch /var/log/nginx/access.log
|
||||
touch /var/log/nginx/error.log
|
||||
touch /var/log/cron/owncloud.log
|
||||
|
||||
cp /etc/nc/config.php /var/www/html/config/config.php
|
||||
chmod 0755 /var/www/html/config/config.php
|
||||
|
||||
if [ "$SQL" = "mysql" ]
|
||||
then
|
||||
cp /etc/nc/autoconfig_mysql.php /var/www/html/config/autoconfig.php
|
||||
fi
|
||||
|
||||
if [ "$SQL" = "mariadb" ]
|
||||
then
|
||||
cp /etc/nc/autoconfig_mariadb.php /var/www/html/config/autoconfig.php
|
||||
fi
|
||||
|
||||
if [ "$SQL" = "pgsql" ]
|
||||
then
|
||||
cp /etc/nc/autoconfig_pgsql.php /var/www/html/config/autoconfig.php
|
||||
fi
|
||||
|
||||
if [ "$SQL" = "oci" ]
|
||||
then
|
||||
cp /etc/nc/autoconfig_oci.php /var/www/html/config/autoconfig.php
|
||||
fi
|
||||
|
||||
if [ -n "${S3:-}" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /etc/nc/s3.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "${S3MB:-}" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /etc/nc/s3mb.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "${S3M:-}" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /etc/nc/s3m.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "${SWIFT:-}" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /etc/nc/swift.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "${SWIFTV3:-}" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /etc/nc/swiftv3.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "${AZURE:-}" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /etc/nc/azure.php' /var/www/html/config/config.php
|
||||
fi
|
||||
|
||||
if [ -n "${REDIS_TLS:-}" ]
|
||||
then
|
||||
sed -i '/\/\/PLACEHOLDER/ r /etc/nc/redis-tls.php' /var/www/html/config/config.php
|
||||
else
|
||||
sed -i '/\/\/PLACEHOLDER/ r /etc/nc/redis-default.php' /var/www/html/config/config.php
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue