-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathrcloneinstall.sh
39 lines (30 loc) · 1.4 KB
/
rcloneinstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#
# Title: PGBlitz (Reference Title File)
# Authors: Admin9705, Deiteq, and many PGBlitz Contributors
# URL: https://pgblitz.com - http://github.pgblitz.com
# GNU: General Public License v3.0
################################################################################
rcloneinstall() {
# install what version of rclone
rversion=1.48
rcheck1=$(rclone --version 2>&1)
rcheck2=$(echo $rcheck1 | cut -c1-12)
if [[ "rclone v$rversion" != "$rcheck2" ]]; then
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💪 Installing RClone Version ~ $rversion
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
sleep 1.5
tee "/etc/fuse.conf" >/dev/null <<EOF
# /etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)
# Set the maximum number of FUSE mounts allowed to non-root users.
# The default is 1000.
#mount_max = 1000
# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other
EOF
ansible-playbook /opt/pgclone/rclone.yml
fi
}