Joe Chen
01a2c68abb
ci: sync workflows from `main` branch ( #6730 )
2022-01-16 19:51:14 +08:00
Dre
90904b3f42
workflow: add shellcheck as a linter ( #6202 )
...
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
2020-07-17 22:49:32 +08:00
mb
0852e83eec
scripts/init/ddwrt: removed reliance on sudo, daemonize deals with forking as user. ( #5806 )
...
Added wait for SQL as it may take more time to start up on a router: make sure you configure this before using.
Proper Start/Stop/Reset is now implemented.
2019-09-19 15:50:57 -07:00
mb
ca084ab1a2
scripts: ddwrt / entware init script ( #5795 )
2019-09-18 18:39:19 -07:00
Shiki-H
2f0cdfd564
scripts/mysql: fix compatibility issue ( #5786 )
2019-08-19 07:06:48 +08:00
Steven Haigh
3c227af508
scripts: add NoNewPrivileges=true to systemd unit file ( #5381 )
...
Also add comment about unsupported options in different systemd versions.
2018-08-16 19:07:36 +08:00
Bogdan Khomutsky
66016b8499
scripts: apply hardening for systemd service ( #5332 )
2018-07-09 16:13:28 +08:00
m2nlight
aa53d0978c
models: add ROW_FORMAT=DYNAMIC when creating table for supports mysql 5.6 ( #4913 )
...
* Add ROW_FORMAT=DYNAMIC when creating table for supports mysql 5.6 (fix #4894 )
* Update models.go
Rename NewEngine2 to NewEngineWithParams
* Rename NewEngine2 to NewEngineWithParams
Please update vendor when https://github.com/go-xorm/xorm/pull/798 closed.
* Update dialect_mysql.go
* Update dialect_mysql.go
* Update models.go
2018-03-09 15:44:07 -05:00
Robin Alexander Richtsfeld
3cba8778b2
scripts: fix overextending of variable name ( #4888 )
2017-11-22 13:40:38 -05:00
Credomane Evonguard
3df25fadfa
scripts: fix LSB init scripts so gogs starts when using mysql/postgresql for database ( #4561 )
2017-06-14 20:37:32 -04:00
Unknwon
7e883f891a
scripts: update gogs.service ( #4223 )
...
According to https://goo.gl/ea8k9K , it hurts nothing to use
nonexistent services but gains convenient for default settings.
2017-03-04 11:40:37 -05:00
Unknwon
b39454ca16
scripts: update gogs.service ( #4223 )
...
Add 'After=mariadb.service’.
[CI SKIP]
2017-03-02 12:21:31 -05:00
Unknwon
3137665e6e
Simplify description
2017-02-15 22:29:31 -05:00
Aaron Wood
263203ec28
Produce a position independent executable ( #4011 )
...
* Produce a position independent executable
* Add OS detection to the main Makefile so we don't apply -pie on OS X
2017-01-28 17:16:34 -05:00
afilippov1985
04fbfad2d4
init script for gentoo ( #3761 )
2016-12-21 03:38:07 -05:00
Corben Dallas
d09fca3ca9
Add a (Open)SuSE init script ( #3558 )
2016-08-31 14:04:21 -07:00
Unknwon
ec92565f23
#3393 fix missing sub-url prefix in relative avatar link
2016-08-07 10:13:05 -07:00
rugk
28dc5bb566
Replace gogs.io http links with https version ( #3386 )
2016-08-05 17:35:40 -07:00
Vasily Mikhaylichenko
f0df46c88a
Add an OpenBSD daemon control script ( #3060 )
2016-07-01 22:24:41 +08:00
Unknwon
4f6c3e8bb2
Hijack #2388
2016-02-14 20:19:00 -05:00
Adam Strzelecki
653e1506ad
OS X launchd script
...
Using this script:
1. Copy scripts/launchd/io.gogs.web.plist into /Library/LaunchDaemons
2. The script assumes Gogs is running under 'gogs' user and group, modify
/Library/LaunchDaemons/io.gogs.web.plist if you want to user different user.
3. The script assumes Gogs is installed in /Users/git/gogs, modify
/Library/LaunchDaemons/io.gogs.web.plist if you installed Gogs in different
location.
4. Once you are sure that running Gogs manually via `gogs web` works fine, run
it as a launchd service with:
sudo launchctl load -F /Library/LaunchDaemons/io.gogs.web.plist
From now on launchd will ensure Gogs is running, eg. when system is restarted.
2016-01-13 19:32:07 +01:00
Koen Wilde
4db0e1d340
Fix status command in FreeBSD init script
...
If the init script is called with `status`, the rc.subr(8) routines check if
the first argument associated with the pid in the pidfile is equal to
`procname`. By default, `procname` is equal to the value of `command`. In our
case, `command` contains a space (i.e. has multiple arguments), so `procname`
can never be equal to the first argument of the command associated with the
pid.
Set `procname` to the first argument of `command` to fix the `status` command
of the init script.
2016-01-09 13:31:45 +01:00
Unknwon
240fe07287
#2273 URL consistency on webhook payload
2015-12-25 07:11:58 -05:00
Adam Strzelecki
e5fe367b82
scripts: Remove less.sh superseded by Makefile
...
We no longer need to manually build CSS files as Makefile keeps track of it.
2015-12-01 22:28:21 +01:00
Unknwon
830d000667
finish wiki
2015-11-30 20:45:55 -05:00
Renato Aquino
923c45d721
HOME fix into FreeBSD init script
2015-11-12 15:36:35 -02:00
T.J. Yang
b992deae92
adding extra check on logpath
2015-10-31 07:32:34 -05:00
Andrey Nering
0252629956
Adding simple script to install Gogs as a Windows service.
2015-10-29 08:05:50 -02:00
Jeff Geerling
4a05c4a759
Set USER env variable so installation can complete successfully.
2015-09-26 23:33:53 -05:00
Unknwon
eda9211fa4
fix #1198
2015-07-28 15:30:14 +08:00
Unknwon
70d44e9565
Merge branch 'master' of github.com:gogits/gogs into develop
2015-07-25 00:48:42 +08:00
无闻
007a42a8ff
Merge pull request #1321 from wfriesen/freebsdinit
...
Fix command used by FreeBSD init script
2015-07-25 00:46:52 +08:00
无闻
4ab60bbfba
Merge pull request #1262 from chadoe/systemd-env
...
fix systemd "Trailing garbage, ignoring." warning.
2015-07-25 00:42:14 +08:00
无闻
9cf334fca9
Merge pull request #1185 from linquize/build-win
...
Update build.sh for Windows
2015-07-25 00:36:57 +08:00
Linquize
08f7547acf
Update build.sh for Windows
2015-06-29 22:33:42 +08:00
William Friesen
bfef8f0edd
Fix command used by FreeBSD init script
2015-06-09 21:40:43 +10:00
Björn
6eecbf17cd
fix debian init script
...
- use start-stop-daemon's chuid feature insted of su
- using `su -c` breaks if the git user has no usable shell
- this fixes #1025
- put --test before --exec, instead it gets passed to gogs
- set cwd via --chdir
2015-06-04 13:15:00 +02:00
Martin van Beurden
66d7adc3a8
fix systemd "Trailing garbage, ignoring." warning.
...
Environment should be a space-separated list instead of comma-separated.
No need for double quoting when the values don't contain spaces.
2015-05-09 20:24:33 +02:00
Robert Rauch
7e5063a93d
fix typo in centos init script
...
We should be *sourcing* `/etc/sysconfig/gogs`, not *executing* it, don't we?
2015-04-01 00:45:00 +02:00
Carlos Gutierrez
e7f4d23412
Remove use of PID and fix stderr redirection
2015-03-17 20:30:25 -07:00
Unknwon
6c84223f43
scripts: remove meaningless script and modify systemd service
2015-03-04 00:59:55 -05:00
Stefan-Code
6e341e26b3
added less compile script
2015-02-18 07:20:06 +01:00
Unknwon
98f7f6bef8
scripts: remove confuse scripts
2015-02-03 12:42:34 -05:00
Clint Armstrong
66a9c0d71d
Rename scripts/rc/freebsd/gogs to scripts/init/freebsd/gogs
2015-01-30 22:52:57 -05:00
Clint Armstrong
7e3d66673d
Add freebsd rc script
2015-01-30 22:51:38 -05:00
Clint Armstrong
eae08ea8f4
Allow start.sh from any working directory
...
This change to start.sh allows it to be executed from any working directory and always reference the gogs binary in the parent directory. Very helpful when calling start.sh from an init script.
2015-01-17 16:52:42 -05:00
André Grötschel
afc659442d
flexiable the build scripts and add a freebsd build script
2014-12-27 15:16:05 +01:00
jacksonpan
3e4db7299d
add +x autoboot.sh
...
fix
2014-10-13 15:52:29 +08:00
jacksonpan
9e4c2afad7
add auto start script
...
how to use:
vim /etc/rc.local, then add
cd /home/git/gogs; scripts/autoboot.sh
(goes path you can replace your path)
2014-10-13 14:32:08 +08:00
jacksonpan
2dd4ab65c7
update the supervisor script and conf
...
now, we auto add the start.sh -> /usr/bin/gogs_start, then supervisor
needn’t the full path, detail please see the commit.
and how to use:
entry gogs root path, then input
scripts/gogs_supervisord.sh restart (add sudo if need)
2014-10-13 14:23:55 +08:00