Copy config files properly when rainloop starts

master
Pierre Jaury 8 years ago
parent 3832f3cbd0
commit 9156a6a750

@ -1,14 +1,14 @@
#!/bin/sh #!/bin/sh
# Fix some permissions
chown -R www-data:www-data /data
# There is no cleaner way to setup the default SMTP/IMAP server or to # There is no cleaner way to setup the default SMTP/IMAP server or to
# override the configuration # override the configuration
rm -f /data/_data_/_default_/domains/* rm -f /data/_data_/_default_/domains/*
mkdir -p /data/_data_/_default_/domains/ /data/_data_/_default_/domains/ mkdir -p /data/_data_/_default_/domains/ /data/_data_/_default_/configs/
cp /default.ini /data/_data_/_default_/domains/ cp /default.ini /data/_data_/_default_/domains/
cp /config.ini /data/_data_/_default_/domains/ cp /config.ini /data/_data_/_default_/configs/
# Fix some permissions
chown -R www-data:www-data /data
# Run apache # Run apache
exec apache2-foreground exec apache2-foreground

Loading…
Cancel
Save