Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GoSome/fileUpdater
A WEB EDITOR FOR update linux config files with hook
https://github.com/GoSome/fileUpdater
admin file golang linux posthook prehook vue webeditor
Last synced: 3 months ago
JSON representation
A WEB EDITOR FOR update linux config files with hook
- Host: GitHub
- URL: https://github.com/GoSome/fileUpdater
- Owner: GoSome
- License: apache-2.0
- Created: 2020-01-13T07:59:57.000Z (almost 5 years ago)
- Default Branch: new
- Last Pushed: 2024-05-02T01:33:59.000Z (7 months ago)
- Last Synced: 2024-06-21T06:17:28.955Z (5 months ago)
- Topics: admin, file, golang, linux, posthook, prehook, vue, webeditor
- Language: JavaScript
- Homepage:
- Size: 12.2 MB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fileUpdater
The file updater helps you use a web page with an editor to update your files and trigger the related command hooks.
Just a single binary file (thanks golang!)## features
* easy deploy (single binary file)
* pre command hook
* post command hook
* command exec timeout (todo)
* auto backup
* daemon
* update itself
* low memory require
* exec shell command
* tiny init (simple superviosr)(todo)
* basic auth (todo)
## How to use it>| Linux
1. get the binary
```bash
wget https://github.com/GoSome/fileUpdater/releases/download/v0.2/fileupdater-amd64-linux
chmod +x fileupdater-amd64-linux
```
2. create simple configconfig.yaml
```yamlserver_port: "8080"
server_host: "0.0.0.0"
updaters:
- name: test1
path: /tmp/test.txt
backup: false
pre_hook:
mode: strict
commands:
- ls -lha```
3. just run
```yaml
./fileupdater-amd64-linux -i -config config.yaml
```
## UI![fileUpdater](./ui.png)
## Hook Seq
```bash
PRE -> WRITE -> POST
```