|
1 | 1 | #!/usr/bin/env bash
|
2 |
| -printf "\\n\\e[93m=== Plexus v0.7.3d - Developed by Robert Thomas ===" |
3 |
| -printf "\\n=== https://github.com/Wolveix/plexus ===" |
4 |
| -printf "\\n\\e[32mInstalling missing dependencies.\\n\\n\\e[94m" |
5 |
| -apt-get install curl ffmpeg unzip -y |
6 |
| -printf "\\n\\e[32mCreating directories if they don't already exist.\\n\\e[94m" |
7 |
| -mkdir -p /mnt/plexus /tmp/plexus/encode/convert /tmp/plexus/encode/converted /tmp/plexus/rclone $HOME/.config/plexus |
8 |
| -rclone_version=$(rclone -V) |
9 |
| -if [[ "$rclone_version" != *"os/arch: "* ]]; then printf "\\n\\e[32mInstalling RClone.\\n\\n\\e[94m"; curl https://rclone.org/install.sh | sudo bash; printf "\\e[32mRClone installed.\\n"; fi |
10 |
| -rclone_remotes=$(rclone listremotes) |
11 |
| -if [ -z "$rclone_remotes" ]; then printf "\\n\\e[32mYou don't have any RClone remotes setup. Set one up by running 'rclone config'\\n\\n\\e[94m"; fi |
| 2 | +printf "\\e[93m=== Plexus v0.8 - Developed by Robert Thomas ===" |
| 3 | +printf "\\n=== https://github.com/Wolveix/Plexus ===" |
| 4 | +printf "\\n\\e[36mInstalling any missing dependencies.\\n\\e[94m" |
| 5 | +apt-get install curl ffmpeg -y -qq |
| 6 | +printf "\\n\\e[36mCreating directories if they don't already exist.\\n\\e[94m" |
| 7 | +mkdir -p $HOME/.config/plexus /mnt/plexus $HOME/.plexus/encode/convert $HOME/.plexus/encode/converted $HOME/.plexus/rclone /tmp/plexus |
12 | 8 | cd /tmp/plexus || exit
|
13 |
| -curl -O https://plexus.robt.me/versions/releases/latest/plexus.conf |
14 |
| -mv plexus.conf "$HOME"/.config/plexus/ |
15 |
| -curl -O https://plexus.robt.me/versions/releases/latest/plexus |
| 9 | +if [[ -f "$HOME/.config/plexus/plexus.conf" ]] |
| 10 | +then |
| 11 | + curl -O https://plexus.robt.me/versions/releases/latest/plexus.conf 2>/dev/null |
| 12 | + mv plexus.conf "$HOME"/.config/plexus/ |
| 13 | +fi |
| 14 | +curl -O https://plexus.robt.me/versions/releases/latest/plexus 2>/dev/null |
16 | 15 | chmod u+x plexus
|
17 | 16 |
|
18 | 17 | OS="$(uname)"
|
|
0 commit comments