mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-04 00:01:36 +01:00
Rename 60-memcache.sh to 94-memcache.sh
This commit is contained in:
15
nextcloud/rootfs/etc/cont-init.d/94-memcache.sh
Normal file
15
nextcloud/rootfs/etc/cont-init.d/94-memcache.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Change data directory
|
||||
datadirectory=$(bashio::config 'data_directory')
|
||||
bashio::log.info "Setting data diretory: ${datadirectory}"
|
||||
sed -i "s|%%datadirectory%%|$datadirectory|g" /defaults/config.php
|
||||
|
||||
# copy config
|
||||
[[ ! -f /data/config/www/nextcloud/config/config.php ]] &&
|
||||
cp /defaults/config.php /data/config/www/nextcloud/config/config.php
|
||||
|
||||
# permissions
|
||||
chown abc:abc \
|
||||
/data/config/www/nextcloud/config/config.php
|
||||
Reference in New Issue
Block a user