forked from anandslab/AtoMiC-ToolKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emby-server-repository-configurator.sh
executable file
·49 lines (46 loc) · 1.14 KB
/
emby-server-repository-configurator.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
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Script Name: AtoMiC Emby Repository Config Script
ARCH=$(uname -m)
ARCHSHORT=${ARCH:0:3}
if [ "$ARCHSHORT" = 'arm' ]; then
TEMPDIST='xUbuntu_14.04'
fi
CODENAME=$(lsb_release -c -s)
if [ "$TEMPDIST" = '' ]; then
case "$CODENAME" in
'sid')
TEMPDIST='Debian_Next'
;;
'stretch')
TEMPDIST='Debian_9.0'
;;
'jessie')
TEMPDIST='Debian_8.0'
;;
'wheezy')
TEMPDIST='Debian_7.0'
;;
'zesty'|'artful')
TEMPDIST='xUbuntu_17.04'
;;
'yakkety')
TEMPDIST='xUbuntu_16.10'
;;
'xenial'|'serena'|'sarah'|'sonya'|'sylvia')
TEMPDIST='xUbuntu_16.04'
;;
'trusty'|'rosa'|'rafaela'|'rebecca'|'qiana')
TEMPDIST='xUbuntu_14.04'
;;
'precise'|'maya'|'betsy')
TEMPDIST='xUbuntu_12.04'
;;
*)
source "$SCRIPTPATH/inc/invalid-option.sh"
;;
esac
fi
if ! [ "$TEMPDIST" = '' ]; then
APPREPOSITORYLINK="deb http://download.opensuse.org/repositories/home:/emby/$TEMPDIST/ /"
REPRECVKEYSASC="http://download.opensuse.org/repositories/home:emby/$TEMPDIST/Release.key"
fi