diff options
author | Thomas Keppler <winfr34k@gmail.com> | 2015-05-15 01:29:44 +0200 |
---|---|---|
committer | Thomas Keppler <winfr34k@gmail.com> | 2015-05-15 01:29:44 +0200 |
commit | 27fe9cfcba095ea42fb97764b869616d2079cdc1 (patch) | |
tree | ff32225c179ca644dc73ef4fdd39fc64e1e84d32 /packager | |
parent | c08baee0855807d24a1b86adfcea86d0731e2a3a (diff) | |
download | gitea-27fe9cfcba095ea42fb97764b869616d2079cdc1.tar.gz gitea-27fe9cfcba095ea42fb97764b869616d2079cdc1.zip |
Fix: "Port is blocked" issue
Fixed an issue where the post intall file for Debian enforced port 6000
which should have been port 3000 because it renders the software virtually unusable
because it's a blocked port in Firefox, Chrome and alikes.
For further reference see:
http://www-archive.mozilla.org/projects/netlib/PortBanning.html
Diffstat (limited to 'packager')
-rwxr-xr-x | packager/debian/postinst | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/packager/debian/postinst b/packager/debian/postinst index c0b06b0233..964e8148f8 100755 --- a/packager/debian/postinst +++ b/packager/debian/postinst @@ -18,8 +18,6 @@ case "$1" in chown ${APP_USER}.${APP_GROUP} $(dirname ${APP_CONFIG}) [ -f ${APP_CONFIG} ] || ${CLI} run cp conf/app.ini ${APP_CONFIG} ${CLI} config:set USER=${APP_USER} - PORT=$(${CLI} config:get PORT || echo "6000") - sed -i "s|HTTP_PORT = 3000|HTTP_PORT = ${PORT}|" ${APP_CONFIG} sed -i "s|RUN_USER = git|RUN_USER = ${APP_USER}|" ${APP_CONFIG} sed -i "s|RUN_MODE = dev|RUN_MODE = prod|" ${APP_CONFIG} |