aboutsummaryrefslogtreecommitdiff
path: root/script
AgeCommit message (Collapse)Author
2024-05-18lib/geoip, cmd/relaypoolsrv, cmd/ursrv: Automatically manage GeoIP updates ↵Jakob Borg
(#9342) This adds a small package `geoip` which knows how to download and manage the Maxmind GeoLite2 database we use. This removes the need for various scripts to download and manage the geoip database, something that today happens on Docker startup for the relay pool server and using various hand written hacks for the usage reporting server. The database is downloaded when needed and then refreshed on a best-effort basis weekly.
2024-02-22docker: Add support for setting umask (#9429)Beat Reichenbach
Add support for setting umask value in the Docker `entrypoint.sh` script. This is useful when not syncing permissions and working with groups, and needing umask values like `002` instead of `022`.
2023-11-20build: Support new nested namespaces in Weblate downloadsJakob Borg
2023-11-14gui: Use nested namespace for theme name translation keys (#9220)André Colomb
Following up on #9192, this makes use of the new mechanism for the theme names. The dummy string added for testing is removed again here. All translations are updated to the new nested syntax, except Chinese (zh-HK) where the string weren't actually translated.
2023-11-13 Support explicit translation ID and dotted namespaces in translation ↵Emil Lundberg
extraction (#9192) Some translations, especially single words or other short labels for buttons and the like, may not be transferable between contexts even if they happen to be equal in English. In these cases, setting an explicit translation ID is important for context separation. Angular Translate also supports nested JSON in translation tables, addressed using `.` as namespace separator; this enhancement makes use of this when extracting translation with an explicit translation ID.
2023-10-07docker: Allow start even if chown fails (fixes #9133) (#9152)Jakob Borg
2023-08-17script: Remove find-metrics which belongs in docsJakob Borg
2023-08-04all: Add Prometheus-style metrics to expose some internal performance ↵Jakob Borg
counters (fixes #5175) (#9003)
2023-01-31cmd, docker: Updates for infrastructureJakob Borg
These are some changes to the relay pool server, upgrade server, and crash receiver to run under Kubernetes. It's been in production for a while.
2023-01-08script: Add weblatedl.go for downloading updated translations (#8723)André Colomb
Based on the transifexdl.go script. Map Weblate language codes to the existing ones during import. Do not delete incomplete languages from repo.
2022-12-21build: Handle co-authors (ref #3744) (#8708)Jakob Borg
The authorship script didn't pick up people who were only ever "co-authors" of a commit, such as when they wrote stuff which was later included in a PR by someone else, or added code during code review. This modified the script to look closer in the commit bodies for "Co-authored-by:"-lines and adds those found to the set of authors.
2022-12-18gui, script: Fix indentation in lang-en.json to match others (#8721)André Colomb
* Indent lang-en.json with four spaces as all other languages. * Regenerate lang-en.json. Removes two no longer used strings.
2022-10-02docker: Fix handling of PCAP variable (fixes #8567) (#8568)Jakob Borg
This correctly handles the absense of the PCAP environment variable, which was broken in the previous change.
2022-09-26docker: Add env var to control capabilities (#8552)Jakob Borg
As it's not simple to run a container under Docker/Kubernetes as non-root but with additional capabilities, add an internal hack.
2022-09-16script: Support single quotes in $translate.instant() parsing (#8542)André Colomb
Duplicate the regular expression for single and double quotes. Support additional arguments (string substitution) in both variants. Simplify the translation string group matching by using a lazy quantifier instead of excluding the quote itself.
2022-08-23all: Fix various user-facing and non-user-facing typos (#8509)luzpaz
Found via `codespell -q 3 -S lang,./gui/default/vendor -L benchs,bu,inflight,ro`
2022-08-10gui, api: Show internal config and state paths (fixes #8323) (#8324)André Colomb
* lib/locations: Fix enum values camelCase. * lib/locations: Remove unused FailuresFile. * cmd/syncthing: Turn around role of locations storage. Previously the locations package was used to provide default paths, possibly with an overridden home directory. Extra paths supplied on the command line were handled and passed around in the options object. To make the changed paths available to any other interested package, override the location setting from the option if supplied, instead of vice versa when not supplied. Adapt code using this to read from the locations package instead of passing through the options object. * lib/locations: Refactor showPaths to locations package. Generate a reusable string in locations.PrettyPrintPaths(). Enumerating all possible locations in different packages is error prone, so add a new public function to generate the listing as a string in the locations package. Adapt cmd/syncthing --paths to use that instead of its own console output. * lib/locations: Include CSRF token in pretty printed paths. * lib/api: New endpoint /rest/system/paths. The paths should be available for troubleshooting from a running instance. Using the --paths CLI option is not easy in some environments, so expose the locations mapping to a JSON endpoint. Add utility function ListExpandedPaths() that also filters out any entries which still contain variable placeholders. * gui: List runtime paths in separate log viewer tab. * Wrap paths. * lib/syncthing: Utilize locations.Get() instead of passing an arg. * Include base directories, move label to table caption. * gui: Switch to hard-coded paths instead of iterating over all. * gui: Break aboutModalView into tabs. Use tabs to separate authors from included third-party software. * gui: Move paths from log viewer to about modal. * lib/locations: Adjust pretty print output order to match GUI. * gui, authors: Remove additional bot names and fix indent. The indentation changed because of the tabbed about dialog, fix the authors script to respect that. Skip Syncthing*Automation in authors list as well. * Update AUTHORS list to remove bot names. * Revert AUTHORS email order change. * Do not emphasize DB and log file locations. * Review line wrapping. * review part 1: strings.Builder, naming * Rename and extend locations.Set() with error handling. Remodel the Override() function along the existing SetBaseDir() and rename it to simply Set(). Make sure to use absolute paths when given log file or GUI assets override options. Add proper error reporting if that goes wrong. * Remove obsolete comment about empty logfile option. * Don't filter out unexpanded baseDir placeholders, only ${timestamp}. * Restore behavior regarding special "-" logfile argument. If the option is given, but with empty value, assume the no log file (same as "-"). Don't try to convert the special value to an absolute path though and document this fact in a comment for the Set() function. * Use template to check for location key validity. * Don't filter out timestamp placeholders. * lib/api: Remove paths from /rest/system/status. * lib/ur: Properly initialize map in failure data (fixes #8479) Co-authored-by: Jakob Borg <jakob@kastelo.net>
2022-05-08gui, authors: Remove additional bot names (#8333)André Colomb
Skip Syncthing*Automation in authors list as well.
2022-05-06script, gui: Exclude bots from the in-GUI authors listJakob Borg
2021-11-22all: Remove usage of deprecated io/ioutil (#7971)Jakob Borg
As of Go 1.16 io/ioutil is deprecated. This replaces usage with the corresponding functions in package os and package io.
2021-10-20gui: Translate theme names in settings (#8006)André Colomb
Add each subdirectory of the guiDir as a translation candidate string. The key is prefixed with "theme-name-" and the default English translation corresponds to the directory name turned to title case. Disable the automatic name mangling in the GUI JS code in favor of just looking up the translation.
2021-08-17all: Update build constraints to Go 1.17 style (#7894)Jakob Borg
2021-07-23gui, script: Parse JS files for translation values (fixes #7845) (#7846)Simon Frei
2021-07-22gui, script: Fix various gui string/translation issues (fixes #7839) (#7842)Simon Frei
2021-06-17build: Add codecov upload script to repo (#7776)Simon Frei
2021-05-08build: List go:generate tools in tools.go (#7599)greatroar
2021-05-04build: Ignore error from pkill on apt upgrade (fixes #7628) (#7629)Simon Frei
2021-04-11build: Do not use --deb-systemd with fpm (fixes #7548) (#7564)Simon Frei
2021-03-05build: Package sysctl configuration to raise UDP buffer size on Linux (#7417)v1.15.0-rc.1bt90
* Provide a sysctl config to raise max UDP buffer size * Add sysctl config to deb * Check if `deb-systemd-invoke` is available Co-authored-by: otbutz <tbutz@optitool.de>
2021-03-03scripts: Remove unused import (ref #7375)Simon Frei
2021-03-03lib: Use counterfeiter to mock interfaces in tests (#7375)Simon Frei
2020-11-24build: Ignore noscript in translation-script (#7149)Simon Frei
2020-08-30build: Improve translation script (fixes #6943) (#6944)Simon Frei
2020-08-25all: Use protobuf to generate config structs (fixes #6734) (#6900)Audrius Butkevicius
2020-07-14docker: Support starting as a non-root user (fixes #6832) (#6835)v1.8.0-rc.1HansK-p
2020-05-28build: Clean up build.sh, add build.ps1 (#6689)Jakob Borg
2020-05-25lib/assets: Allow assets to remain uncompressed (#6661)greatroar
2020-05-07all: Store assets as strings (#6611)greatroar
Storing assets as []byte requires every compiled-in asset to be copied into writable memory at program startup. That currently takes up 1.6MB per syncthing process. Strings stay in the RODATA section and should be shared between processes running the same binary.
2020-03-02authors: Cleanup on requestJakob Borg
2019-12-22docker: Fix HOME setting (fixes #6234) (#6235)Jakob Borg
su-exec sets $HOME, and we used to have this env call in there to fix that up. It disappeared in the latest entrypoint.sh rewrite.
2019-11-11docker: Add stdiscosrv and strelaysrv Dockerfiles (#6143)v1.3.2-rc.1Jacob
2019-05-18docker: Create entrypoint script (fixes #5631) (#5635)Tom Jakubowski
2018-07-23authors: Enable auto updates (#5074)Jakob Borg
Removes the manual handling of the AUTHORS file, giving every committer automatic credit for their contribution. Manual tweaks to the file are still accepted and retained by the scripts.
2018-06-26build: Let "go generate" create assetsJakob Borg
2018-06-13script: Use strings instead of byte slice literals in asset generationJakob Borg
It compiles literally 50 times faster and generates the same code. Also add the little header that indicates auto generated code.
2018-05-29script: Use source data from environment when generating assetsJakob Borg
2018-05-10gui: Enable proper asset caching (#4931)v0.14.48-rc.3Audrius Butkevicius
2018-04-11script: Don't base64 encode the assets (#4874)Jakob Borg
We did this to minimize source size and make it compile faster. Nowadays byte slice literals compile as fast as anything, and the source isn't checked in so it doesn't matter how big it is. Not using base64 avoids a decode step at startup and makes the binary about 400k smaller.
2017-12-04script: Retire unused changelog scriptJakob Borg
2017-12-04authors: Retire unused NICKS fileJakob Borg