2020-11-02 04:08:18 +00:00
|
|
|
#!/bin/sh
|
2020-09-17 16:02:24 +00:00
|
|
|
|
2020-11-08 16:26:14 +00:00
|
|
|
DIR=$(dirname "$(readlink -f "$0")")
|
2020-11-02 04:08:18 +00:00
|
|
|
. "$DIR/../env.sh"
|
2020-09-17 16:02:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
# install nextcloud
|
|
|
|
case "$PM" in
|
|
|
|
apt)
|
2020-09-18 04:16:15 +00:00
|
|
|
sudo add-apt-repository -y ppa:nextcloud-devs/client
|
2020-09-17 16:11:58 +00:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt install -y nextcloud-client
|
2020-09-17 16:02:24 +00:00
|
|
|
;;
|
|
|
|
pacman)
|
2020-09-18 18:01:58 +00:00
|
|
|
sudo pacman -S --needed nextcloud-client
|
2020-09-17 16:02:24 +00:00
|
|
|
;;
|
|
|
|
esac
|