migrate existing data
This commit is contained in:
parent
534bbf660f
commit
3badca18e3
8
start.sh
8
start.sh
|
@ -33,7 +33,13 @@ sed -e "s/##HOSTNAME/${fqdn}/g" \
|
||||||
-e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \
|
-e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \
|
||||||
/home/cloudron/app.ini.template > "/run/gogs/app.ini"
|
/home/cloudron/app.ini.template > "/run/gogs/app.ini"
|
||||||
|
|
||||||
mkdir -p /app/data/repository /app/data/ssh
|
if [[ ! -d /app/data/repository ]]; then
|
||||||
|
mkdir -p /app/data/repository /app/data/ssh
|
||||||
|
mv /app/data/* /app/data/repository
|
||||||
|
then
|
||||||
|
mkdir -p /app/data/repository /app/data/ssh
|
||||||
|
fi
|
||||||
|
|
||||||
chown -R cloudron.cloudron /app/data /run/gogs
|
chown -R cloudron.cloudron /app/data /run/gogs
|
||||||
|
|
||||||
( setup_ldap_source ) &
|
( setup_ldap_source ) &
|
||||||
|
|
Loading…
Reference in New Issue