2020-09-17 16:02:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DIR=$(readlink -f $(dirname $0))
|
|
|
|
. $DIR/../env.sh
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|