Skip to content

Commit

Permalink
Merge pull request #21 from tazboyz16/Dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
tazboyz16 authored Aug 15, 2017
2 parents 9627e97 + 0534a5f commit 1592752
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ks-example.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ cp /opt/install/System/Installserver.service /etc/systemd/system/
chmod 644 /etc/systemd/system/Installserver.service
systemctl enable Installserver.service

apt get update
apt get upgrade -y
apt update
apt upgrade -y
13 changes: 13 additions & 0 deletions myapps/backup/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig

pkg/
src/
3 changes: 3 additions & 0 deletions myapps/codeanywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
#http://port-5050.ubuntu-server-auto-install-tazboyz16.codeanyapp.com
apt update; apt upgrade -y --force-yes
apt install systemd software-properties-common nano dialog debconf apt-transport-https -y

cd myapps
cp -rf * /opt
17 changes: 13 additions & 4 deletions myapps/install/Deluge/deluge_webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ $EUID -ne 0 ]]; then
fi

#Modes (Variables)
# b=backup i=install r=restore -vpn(coming soon)
# b=backup i=install r=restore -vpn(coming soon) -dd(setup default daemon to localhost)
mode="$1"

Programloc=/var/lib/deluge
Expand Down Expand Up @@ -37,8 +37,6 @@ case $mode in
systemctl start deluged
systemctl start deluge-web
sleep 20
echo "Creating Auto load localhost WebUI for DelugeWeb"
sed -i 's#"default_daemon": ""#"default_daemon": "127.0.0.1:58846"#' /var/lib/deluge/.config/deluge/web.conf
;;
(-r)
echo "<--Restoring Deluge Settings -->"
Expand Down Expand Up @@ -69,11 +67,22 @@ case $mode in
tar -zcvf /opt/backup/Deluged_FullBackup-$time.tar.gz $backupdir
echo "Restarting up Deluge"
systemctl start deluged
systemctl stop deluge-web
systemctl start deluge-web
;;
(-vpn)
#lookup Reverse Proxy with Deluge

;;
(-dd)
echo "Stopping Deluge"
systemctl stop deluged
systemctl stop deluge-web
echo "Creating Auto load localhost WebUI for DelugeWeb"
chmod 0777 -R /var/lib/deluge/
sed -i 's#"default_daemon": ""#"default_daemon": "127.0.0.1:58846"#' /var/lib/deluge/.config/deluge/web.conf
echo "Restarting up Deluge"
systemctl start deluged
systemctl start deluge-web
;;
(-*) echo "Invalid Argument"; exit 0;;
esac
Expand Down
4 changes: 0 additions & 4 deletions myapps/install/EmbyServer/EmbyServerInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,21 @@ case $mode in
echo "<--Restoring Emby Server Settings -->"
echo "Stopping Emby Server"
systemctl stop emby-server
service emby-server stop
sudo chmod 0777 -R $Programloc
cp /opt/install/Jackett/ServerConfig.json /var/lib/emby-server/config/
echo "Restarting up Emby Server"
systemctl start emby-server
service emby-server start
;;
(-b)
echo "Stopping Emby Server"
systemctl stop emby-server
service emby-server stop
echo "Making sure Backup Dir exists"
mkdir -p $backupdir
echo "Backing up Emby Server to /opt/backup"
cp /var/lib/emby-server/config/system.xml $backupdir
tar -zcvf /opt/backup/EmbyServer_FullBackup-$time.tar.gz $backupdir
echo "Restarting up Emby Server"
systemctl start emby-server
service emby-server start
;;
(-f)
#only run if getting a libembysqlite3.so.0 error
Expand Down
2 changes: 2 additions & 0 deletions myapps/install/Plex/plexpy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ if [[ $EUID -ne 0 ]]; then
fi

echo "Installing PlexPy"
apt update
apt install python
adduser --disabled-password --system --home /opt/ProgramData/PlexPy --gecos "PlexPy Service" --group plexpy
cd /opt && git clone https://github.com/JonnyWong16/plexpy.git
#echo "<--- Restoring PLexPy Settings --->"
Expand Down

0 comments on commit 1592752

Please sign in to comment.