mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-28 19:21:05 +00:00
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