-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnewpgclone.sh
34 lines (28 loc) · 1.51 KB
/
newpgclone.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
#!/bin/bash
#
# Title: PGBlitz (Reference Title File)
# Author(s): Admin9705
# URL: https://pgblitz.com - http://github.pgblitz.com
# GNU: General Public License v3.0
################################################################################
### FILL OUT THIS AREA ###
echo 'pgclone' >/var/plexguide/pgcloner.rolename
echo 'PTS-Clone' >/var/plexguide/pgcloner.roleproper
echo 'PTS-Clone' >/var/plexguide/pgcloner.projectname
echo 'final' >/var/plexguide/pgcloner.projectversion
echo 'pgclone.sh' >/var/plexguide/pgcloner.startlink
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
echo "💬 rClone utilizes RClone's Mounts + MergerFS's Union" >/var/plexguide/pgcloner.info
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
### START PROCESS
source /opt/plexguide/menu/functions/functions.sh
rolename=$(cat /var/plexguide/pgcloner.rolename)
roleproper=$(cat /var/plexguide/pgcloner.roleproper)
projectname=$(cat /var/plexguide/pgcloner.projectname)
projectversion=$(cat /var/plexguide/pgcloner.projectversion)
startlink=$(cat /var/plexguide/pgcloner.startlink)
mkdir -p "/opt/$rolename"
initial() {
bash /opt/${rolename}/${startlink}
}
initial