migrate existing data
This commit is contained in:
parent
534bbf660f
commit
3badca18e3
6
start.sh
6
start.sh
|
@ -33,7 +33,13 @@ sed -e "s/##HOSTNAME/${fqdn}/g" \
|
|||
-e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \
|
||||
/home/cloudron/app.ini.template > "/run/gogs/app.ini"
|
||||
|
||||
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
|
||||
|
||||
( setup_ldap_source ) &
|
||||
|
|
Loading…
Reference in New Issue