Compare commits

...

4 Commits

Author SHA1 Message Date
cdpb
b043bde96c
Merge 3b181149cf into 3b57602fe8 2023-09-02 03:03:06 -07:00
Major Hayden
3b57602fe8
Docs: Add Fedora installation choice (#320)
Fedora now has an autorestic package and users can install it directly
from Fedora's repositories.

Signed-off-by: Major Hayden <major@mhtx.net>
2023-08-01 13:10:12 +02:00
Mikel Olasagasti Uranga
045513234f
Use Printf instead of Println (#318)
Testing in Fedora reports:

./root.go:58:4: (*github.com/fatih/color.Color).Println call has
possible Printf formatting directive %s
2023-07-31 10:03:18 +02:00
cdpb
3b181149cf Add option for custom install paths 2022-11-10 13:47:55 +01:00
3 changed files with 16 additions and 2 deletions

View File

@ -55,7 +55,7 @@ func initConfig() {
viper.SetConfigFile(cfgFile) viper.SetConfigFile(cfgFile)
viper.AutomaticEnv() viper.AutomaticEnv()
if viper.ConfigFileUsed() == "" { if viper.ConfigFileUsed() == "" {
colors.Error.Println("cannot read config file %s\n", cfgFile) colors.Error.Printf("cannot read config file %s\n", cfgFile)
os.Exit(1) os.Exit(1)
} }
} else { } else {

View File

@ -8,6 +8,12 @@ Autorestic requires `bash`, `wget` and `bzip2` to be installed. For most systems
wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | bash wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | bash
``` ```
Or for custom install paths.
```bash
wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | OUT_FILE=~/.local/bin/autorestic bash
```
## Alternatives ## Alternatives
### Docker ### Docker
@ -24,6 +30,10 @@ You can download the right binary from the release page and simply copy it to `/
If you are on macOS you can install through brew: `brew install autorestic`. If you are on macOS you can install through brew: `brew install autorestic`.
### Fedora
Fedora users can install the [autorestic](https://src.fedoraproject.org/rpms/autorestic/) package with `dnf install autorestic`.
### AUR ### AUR
~~If you are on Arch there is an [AUR Package](https://aur.archlinux.org/packages/autorestic-bin/) (looking for maintainers).~~ - Deprecated ~~If you are on Arch there is an [AUR Package](https://aur.archlinux.org/packages/autorestic-bin/) (looking for maintainers).~~ - Deprecated

View File

@ -2,7 +2,11 @@
shopt -s nocaseglob shopt -s nocaseglob
# set OUT_FILE to custom install path
# wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | OUT_FILE=~/.local/bin/autorestic bash
if [[ -z $OUT_FILE ]]; then
OUT_FILE=/usr/local/bin/autorestic OUT_FILE=/usr/local/bin/autorestic
fi
# Type # Type
NATIVE_OS=$(uname | tr '[:upper:]' '[:lower:]') NATIVE_OS=$(uname | tr '[:upper:]' '[:lower:]')