Remove dead code
This commit is contained in:
parent
c79129bc6a
commit
ec8932c45d
|
@ -4,7 +4,7 @@
|
||||||
"author": "Gogs developers",
|
"author": "Gogs developers",
|
||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"tagline": "A painless self-hosted Git Service",
|
"tagline": "A painless self-hosted Git Service",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 3000,
|
"httpPort": 3000,
|
||||||
"addons": {
|
"addons": {
|
||||||
|
|
17
start.sh
17
start.sh
|
@ -64,23 +64,6 @@ 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 > "/home/cloudron/gogs/custom/conf/app.ini"
|
/home/cloudron/app.ini.template > "/home/cloudron/gogs/custom/conf/app.ini"
|
||||||
|
|
||||||
# update ldap (won't work without _csrf)
|
|
||||||
#curl -X POST http://localhost:3000/admin/auths/1 \
|
|
||||||
# --data id=1 \
|
|
||||||
# --data type=2 \
|
|
||||||
# --data name=cloudron \
|
|
||||||
# --data domain=cloudron \
|
|
||||||
# --data host=${LDAP_SERVER} \
|
|
||||||
# --data port=${LDAP_PORT} \
|
|
||||||
# --data-urlencode base_dn=ou=users,dc=cloudron \
|
|
||||||
# --data attribute_username=uid \
|
|
||||||
# --data attribute_name= \
|
|
||||||
# --data attribute_surname= \
|
|
||||||
# --data attribute_mail=mail \
|
|
||||||
# --data-urlencode 'filter=(&(objectClass=user)(uid=%s))' \
|
|
||||||
# --data ms_ad_sa= \
|
|
||||||
# --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,\"UserBase\":\"${LDAP_USERS_BASE_DN}\",\"AttributeUsername\":\"uid\",\"AttributeName\":\"\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(uid=%s))\",\"Enabled\":true}',1,'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,\"UserBase\":\"${LDAP_USERS_BASE_DN}\",\"AttributeUsername\":\"uid\",\"AttributeName\":\"\",\"AttributeSurname\":\"\",\"AttributeMail\":\"mail\",\"Filter\":\"(\\\\u0026(objectClass=user)(uid=%s))\",\"Enabled\":true}',1,'2015-06-24 17:14:12','2015-06-24 17:25:03');"
|
||||||
|
|
Loading…
Reference in New Issue