Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
a68c12bd
Unverified
Commit
a68c12bd
authored
8 years ago
by
miigotu
Browse files
Options
Downloads
Patches
Plain Diff
Pycharm code inspection on install script
parent
c32c66b8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/debian-ubuntu-install.sh
+10
-10
10 additions, 10 deletions
contrib/debian-ubuntu-install.sh
with
10 additions
and
10 deletions
contrib/debian-ubuntu-install.sh
+
10
−
10
View file @
a68c12bd
...
...
@@ -19,8 +19,8 @@ fi
# Get external ip address (checking 3 sites for redundancy)
for
i
in
'ipecho.net/plain'
'ifconfig.me'
'checkip.amazonaws.com'
;
do
extip
=
$(
curl
-s
$
i
)
[[
!
$extip
]]
||
break
extip
=
$(
curl
-s
$
{
i
}
)
[[
!
$
{
extip
}
]]
||
break
done
# Get internal ip address
...
...
@@ -32,17 +32,17 @@ apt-get -qq install whiptail -y
# Check to see what SickRage Dependencies are missing
packages
=
$(
dpkg
-l
unrar-free git-core openssl libssl-dev python2.7 2>1 |
grep
"no packages"
|
\
awk
'{ print $6 }'
|
tr
'\n'
' '
)
if
[[
$packages
]]
;
then
if
[[
$
{
packages
}
]]
;
then
# Show Whiptail and install required files
{
i
=
1
while
read
-r
line
;
do
i
=
$((
$i
+
1
))
echo
$
i
done
< <
(
apt-get update
&&
apt-get
install
$packages
-y
)
echo
$
{
i
}
done
< <
(
apt-get update
&&
apt-get
install
$
{
packages
}
-y
)
}
| whiptail
--title
"Progress"
--gauge
"Installing
$packages
"
8 80 0
fi
# Check to see if all prior packages were installed sucessfully. if not exit 1 and display whiptail issues
# Check to see if all prior packages were installed suc
c
essfully. if not exit 1 and display whiptail issues
if
[[
$(
dpkg
-l
unrar-free git-core openssl libssl-dev python2.7 2>&1 |
grep
"no packages"
|
\
awk
'{print $6 }'
)
]]
;
then
...
...
@@ -72,7 +72,7 @@ if [[ ! -d /opt/sickrage ]]; then
else
whiptail
--title
'Overwrite?'
--yesno
"/opt/sickrage already exists, do you want to overwrite it?"
8 40
choice
=
$?
if
[[
$choice
==
0
]]
;
then
if
[[
$
{
choice
}
==
0
]]
;
then
echo
"Removing Old SickRage Folder And Creating New SickRage Folder"
rm
-rf
/opt/sickrage
&&
mkdir
/opt/sickrage
&&
chown
sickrage:sickrage /opt/sickrage
echo
"Git Cloning In Progress"
...
...
@@ -85,7 +85,7 @@ fi
# Depending on Distro, Cp the service script, then change the owner/group and change the permissions. Finally
# start the service
if
[[
$distro
=
ubuntu
]]
;
then
if
[[
$
{
distro
}
=
ubuntu
]]
;
then
if
[[
$(
/sbin/init
--version
2> /dev/null
)
=
~ upstart
]]
;
then
echo
"Copying Startup Script To Upstart"
cp
/opt/sickrage/runscripts/init.upstart /etc/init/sickrage.conf
...
...
@@ -106,7 +106,7 @@ if [[ $distro = ubuntu ]]; then
echo
"Starting SickRage"
update-rc.d sickrage defaults
&&
service sickrage start
fi
elif
[[
$distro
=
debian
]]
;
then
elif
[[
$
{
distro
}
=
debian
]]
;
then
if
[[
$(
systemctl
)
=
~ -
\.
mount
]]
;
then
echo
"Copying Startup Script To systemd"
cp
/opt/sickrage/runscripts/init.systemd /etc/systemd/system/sickrage.service
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment