Compare commits

...

3 Commits

Author SHA1 Message Date
Andrei Jiroh Halili a74081e86c
More chaotic fixes ahead
Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
2022-06-03 00:26:46 +08:00
Andrei Jiroh Halili de50f74e5d
Quick syntax fix on the ./scripts/get-writefreely-binary.sh file
Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
2022-06-03 00:24:14 +08:00
Andrei Jiroh Halili 8b06e16cab
Update README with some docs
Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
2022-06-03 00:23:01 +08:00
2 changed files with 26 additions and 3 deletions

23
README.md Normal file
View File

@ -0,0 +1,23 @@
# WriteFreely Configuration Git Repo Template
This template repository serves as your starting point on keeping your configuration in an Git repo for WriteFreely, whenever for use in Docker or not. Since we're storing senstive information, please DO NOT make them public, otherwise you breached to ["Net F**ked by 2050"][thejuicemedia-net-zero] status.
[thejuicemedia-net-zero]: https://www.youtube.com/watch?v=1FqXTCvDLeo
## Getting Started
It's best to do the `clone-and-push` method (instead of creating an fork in GitHub or pressing `Use this template`) to keep up with upstream changes as it might be hard to synchorize our changes into your config repo, and if you do, you're on your own on static resources, HTMl templates, and other stuff. If you do use this template afresh, then expect more chaos on the Git commit history side.
1. Clone this repo somewhere with `git clone https://github.com/ajhalili2006-experiments/writefreely-config-hub-template wfdata`, where `wfdata` is the directory would you like to store the repository.
2. Rename the remote with `git remote rename origin upstream` then add your private repo where you'll use for storing the configs with `git remote add origin <url>`, replacing `<url>` with the Git HTTPS or SSH URL of that repo.
3. Push with `git push -u origin main` to push changes into your own private fork.
4. Profit! Now you can do `writefreely config gen`, `writefreely db init` and `writefreely keys gen` commands. Make sure to commit them to avoid losing your data.
## Related Projects
* <https://mau.dev/RecapTime/docker-writefreely>
## License
Files provided by this repo, including from upstream's release tarballs are licensed under AGPL 3.0. Proceed at your own risk
if you customize anything and use these customizations as an business, especially if it include your configuration/s.

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -xe
if [[ "$EUID" != "0"]]; then
if [[ "$EUID" != "0" ]]; then
echo "error: Run this script again as root to install the binary to /usr/local/bin!"
fi
@ -9,9 +9,9 @@ fi
ACCESS_KEY="1DXWofMPgzcjWYy2b7F9HYxWAXMNDVDroAWQBV5i7t3fn784Gay3ekM8TgZfFrGeHo6JanUuNA8ukS84jH5XzV1sY73v1HPWcBDQDUFtM8AbuVGjRHEhNQSWFHNWE8LTRvuW57XBLTyCy5w4ndR7ntkKBBxq4v4hPaX2K8jvFE8WwzTzu5c9wncd4LmKGUSjDBtZ3j4M4EWp81xgZjhpdkoLSpLxKSJQLxL63UL8SHF9xEoiH2knf87udwXjMzVxyLsngT2sSp8ZRCjgkupHSL1JisDJdE96bEbddECnAhUFhoHwUEcuA5RPRntn55HNoGEYkwZjerjR8wxKD2eNj7"
BASE_URL="https://link.eu1.storjshare.io/s"
BUCKET_PATH="recaptime-file-dumps/ajhalili2006/writefreely"
VERSION=0.13.1
VERSION="0.13.1"
if command -v wget; then
if command -v wget >> /dev/null; then
wget "$BASE_URL/$ACCESS_KEY/$BUCKET_PATH/writefreely_$VERSION_linux_amd64.tar.gz?download=1" -O /tmp/writefreely-release.tar.gz
else
curl "$BASE_URL/$ACCESS_KEY/$BUCKET_PATH/writefreely_$VERSION_linux_amd64.tar.gz?download=1" -o /tmp/writefreely-release.tar.gz