migrate existing data

This commit is contained in:
Girish Ramakrishnan 2015-10-14 00:46:53 -07:00
parent 534bbf660f
commit 3badca18e3

View file

@ -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"
if [[ ! -d /app/data/repository ]]; then
mkdir -p /app/data/repository /app/data/ssh 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 ) &