Disable for now for debugging
This commit is contained in:
parent
90e3a56f69
commit
784d6acb6d
|
@ -19,8 +19,8 @@ RUN mkdir -p ${GOPATH}/src/github.com/gogits && \
|
||||||
go install && \
|
go install && \
|
||||||
mv ${GOPATH}/bin/gogs /home/cloudron/gogs/ && \
|
mv ${GOPATH}/bin/gogs /home/cloudron/gogs/ && \
|
||||||
cp -r ${GOPATH}/src/github.com/gogits/gogs/templates/ /home/cloudron/gogs/. && \
|
cp -r ${GOPATH}/src/github.com/gogits/gogs/templates/ /home/cloudron/gogs/. && \
|
||||||
cp -r ${GOPATH}/src/github.com/gogits/gogs/public/ /home/cloudron/gogs/. && \
|
cp -r ${GOPATH}/src/github.com/gogits/gogs/public/ /home/cloudron/gogs/.
|
||||||
rm -rf ${GOPATH}
|
# rm -rf ${GOPATH}
|
||||||
|
|
||||||
ADD app.ini.template /home/cloudron/app.ini.template
|
ADD app.ini.template /home/cloudron/app.ini.template
|
||||||
ADD start.sh /home/cloudron/start.sh
|
ADD start.sh /home/cloudron/start.sh
|
||||||
|
|
4
start.sh
4
start.sh
|
@ -82,8 +82,8 @@ sed -e "s/##HOSTNAME/${fqdn}/g" \
|
||||||
# --data is_actived=on
|
# --data is_actived=on
|
||||||
|
|
||||||
# id, type, name, is_actived, cfg, allow_auto_register, created, updated
|
# id, type, name, is_actived, cfg, allow_auto_register, created, updated
|
||||||
mysql -u"${MYSQL_USERNAME}" -p"${MYSQL_PASSWORD}" -h mysql --database="${MYSQL_DATABASE}" \
|
#mysql -u"${MYSQL_USERNAME}" -p"${MYSQL_PASSWORD}" -h mysql --database="${MYSQL_DATABASE}" \
|
||||||
-e "REPLACE INTO login_source VALUES (1,2,'cloudron',1,'{\"Name\":\"cloudron\",\"Host\":\"${LDAP_SERVER}\",\"Port\":${LDAP_PORT},\"UseSSL\":false,\"BaseDN\":\"${LDAP_USERS_BASE_DN}\",\"AttributeUsername\":\"uid\",\"AttributeName\":\"\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(uid=%s))\",\"MsAdSAFormat\":\"cn=%s,${LDAP_USERS_BASE_DN}\",\"Enabled\":true}',0,'2015-06-24 17:14:12','2015-06-24 17:25:03');"
|
# -e "REPLACE INTO login_source VALUES (1,2,'cloudron',1,'{\"Name\":\"cloudron\",\"Host\":\"${LDAP_SERVER}\",\"Port\":${LDAP_PORT},\"UseSSL\":false,\"BaseDN\":\"${LDAP_USERS_BASE_DN}\",\"AttributeUsername\":\"uid\",\"AttributeName\":\"\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(uid=%s))\",\"MsAdSAFormat\":\"cn=%s,${LDAP_USERS_BASE_DN}\",\"Enabled\":true}',0,'2015-06-24 17:14:12','2015-06-24 17:25:03');"
|
||||||
|
|
||||||
supervisorctl restart gogs
|
supervisorctl restart gogs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue