forked from cloudron-apps/gitea-app
migrate existing data
This commit is contained in:
parent
534bbf660f
commit
3badca18e3
1 changed files with 7 additions and 1 deletions
8
start.sh
8
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"
|
||||
|
||||
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
|
||||
|
||||
( setup_ldap_source ) &
|
||||
|
|
Loading…
Reference in a new issue