Skip to content

Commit

Permalink
Merge pull request #189 from TommyE123/master
Browse files Browse the repository at this point in the history
Mono & Jackett fixes
  • Loading branch information
TommyE123 committed Aug 20, 2017
2 parents 701110d + d750488 commit a75ab23
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 22 deletions.
3 changes: 1 addition & 2 deletions inc/app-toolkit-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ echo -e "$YELLOW--->CHECKING TOOLKIT DEPENDENCIES ...$ENDCOLOR"
sudo apt-get -qq install apt-transport-https build-essential \
ca-certificates checkinstall curl dnsutils git lsb-release \
mediainfo mediainfo-gui p7zip-full par2 sed \
software-properties-common sqlite3 tar unzip wget zip -y

software-properties-common sqlite3 tar unzip wget zip dirmngr -y
echo
5 changes: 2 additions & 3 deletions jackett/jackett-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
# Publisher: http://www.htpcBeginner.com
# License: MIT License (refer to README.md for more details)

# DO NOT EDIT ANYTHING UNLESS YOU KNOW WHAT YOU ARE DOING.

source "$SCRIPTPATH/inc/app-setup-check.sh"
source "$SCRIPTPATH/inc/commons.sh"
source "$SCRIPTPATH/inc/header.sh"
echo -e "${GREEN}AtoMiC $APPTITLE Installer Script$ENDCOLOR"
source "$SCRIPTPATH/inc/app-autostart-remove.sh"
source "$SCRIPTPATH/inc/app-move-previous.sh"
source "$SCRIPTPATH/inc/pkgupdate.sh"
source "$SCRIPTPATH/utils/mono/mono-installer.sh"
source "$SCRIPTPATH/jackett/jackett-constants.sh"
source "$SCRIPTPATH/inc/app-install-deps.sh"
source "$SCRIPTPATH/inc/app-folders-create.sh"
source "$SCRIPTPATH/jackett/jackett-download.sh"
Expand Down
5 changes: 2 additions & 3 deletions jackett/jackett-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
# Publisher: http://www.htpcBeginner.com
# License: MIT License (refer to README.md for more details)

# DO NOT EDIT ANYTHING UNLESS YOU KNOW WHAT YOU ARE DOING.

source "$SCRIPTPATH/inc/app-setup-check.sh"
source "$SCRIPTPATH/inc/commons.sh"
source "$SCRIPTPATH/inc/header.sh"
echo -e "${GREEN}AtoMiC $APPTITLE Update Script$ENDCOLOR"
source "$SCRIPTPATH/inc/pause.sh"
source "$SCRIPTPATH/inc/app-folder-check.sh"
source "$SCRIPTPATH/inc/app-stop.sh"
source "$SCRIPTPATH/inc/pkgupdate.sh"
source "$SCRIPTPATH/utils/mono/mono-installer.sh"
source "$SCRIPTPATH/jackett/jackett-constants.sh"
source "$SCRIPTPATH/inc/app-install-deps.sh"
source "$SCRIPTPATH/inc/app-folders-create.sh"
source "$SCRIPTPATH/jackett/jackett-download.sh"
Expand Down
3 changes: 1 addition & 2 deletions utils/mono/mono-constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
APPTITLE='Mono'
APPNAME='mono-complete'
APPDEPS='libmono-cil-dev'
APPREPOSITORYNAME='mono-xamarin'
APPREPOSITORYNAME='mono-official'
REPKEYSERVER='hkp://keyserver.ubuntu.com:80'
REPRECVKEYS='3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF'
REPRECVKEYSHORT='D3D831EF'
REPOPPA='NO'
APPREPOSITORYLINK="deb http://download.mono-project.com/repo/debian wheezy main"
REPOKEYSREQ='YES'
1 change: 0 additions & 1 deletion utils/mono/mono-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Publisher: http://www.htpcBeginner.com
# License: MIT License (refer to README.md for more details)

# DO NOT EDIT ANYTHING UNLESS YOU KNOW WHAT YOU ARE DOING.
echo
echo -e "${GREEN}AtoMiC Mono Installer Script$ENDCOLOR"
source "$SCRIPTPATH/inc/app-constant-reset.sh"
Expand Down
54 changes: 45 additions & 9 deletions utils/mono/mono-repository-configurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,51 @@
# Publisher: http://www.htpcBeginner.com
# License: MIT License (refer to README.md for more details)

# DO NOT EDIT ANYTHING UNLESS YOU KNOW WHAT YOU ARE DOING.
# Remove the old repo if it exists
if [[ -f /etc/apt/sources.list.d/mono-xamarin.list ]]; then
echo -e "${YELLOW}---> Removing old mono-xamarin.list...$ENDCOLOR"
sudo rm "/etc/apt/sources.list.d/mono-xamarin.list"
echo 'Done'
fi

ARCH=$(uname -m)
ARCHSHORT=${ARCH:0:3}
CODENAME=$(lsb_release -c -s)
if [[ $ARCHSHORT = 'arm' ]] && [[ $CODENAME = 'jessie' || $CODENAME = 'stretch' ]]; then
case "$CODENAME" in
'jessie')
TEMPDIST='debian raspbianjessie'
;;
'stretch')
TEMPDIST='debian raspbianstretch'
;;
esac
else
case "$CODENAME" in
'wheezy')
TEMPDIST='debian wheezy'
;;
'jessie')
TEMPDIST='debian jessie'
;;
'stretch')
TEMPDIST='debian stretch'
;;
'xenial'|'serena'|'sarah'|'sonya'|'zesty'|'yakkety'|'artful')
TEMPDIST='ubuntu xenial'
;;
'trusty'|'rosa'|'rafaela'|'rebecca'|'qiana')
TEMPDIST='ubuntu trusty'
;;
'precise'|'maya'|'betsy')
TEMPDIST='ubuntu precise'
;;
*)
source "$SCRIPTPATH/inc/invalid-option.sh"
;;
esac
fi

case "$CODENAME" in
'squeeze'|'wheezy'|'jessie'|'stretch'|'sid')
APPREPOSITORYLINKBACKUP="deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main"
;;
*)
APPREPOSITORYLINKBACKUP=''
;;
esac
if [[ ! $TEMPDIST = '' ]]; then
APPREPOSITORYLINK="deb http://download.mono-project.com/repo/$TEMPDIST main"
fi
4 changes: 2 additions & 2 deletions utils/mono/mono-uninstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
# Publisher: http://www.htpcBeginner.com
# License: MIT License (refer to README.md for more details)

# DO NOT EDIT ANYTHING UNLESS YOU KNOW WHAT YOU ARE DOING.

echo -e "${GREEN}AtoMiC $APPTITLE Uninstaller Script$ENDCOLOR"
source "$SCRIPTPATH/inc/app-setup-check.sh"
source "$SCRIPTPATH/inc/pause.sh"
source "$SCRIPTPATH/inc/app-uninstall.sh"
source "$SCRIPTPATH/inc/app-uninstall-deps.sh"
source "$SCRIPTPATH/utils/mono/mono-repository-configurator.sh"
source "$SCRIPTPATH/inc/app-repository-remove.sh"
source "$SCRIPTPATH/inc/app-uninstall-confirmation.sh"

0 comments on commit a75ab23

Please sign in to comment.