8000 jenkinsパッケージをアンインストールしないと、再インストール失敗する。 by tkmtmkt · Pull Request #148 · alminium/alminium · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions uninstall
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ if [ "$GEM" = "" ]
then
GEM=gem
fi


echo "ALMiniumをアンインストールします。"
echo ""
Expand All @@ -26,13 +25,13 @@ read YN

if [ "$YN" = "y" ]
then
rm -fr /etc/apache2/sites-available/vcs
rm -fr /etc/apache2/sites-available/redmine
rm -fr /etc/apache2/sites-enabled/vcs
rm -fr /etc/apache2/sites-enabled/redmine
rm -fr /etc/apache2/sites-{available,enabled}/jenkins
rm -fr /etc/apache2/sites-{available,enabled}/redmine
rm -fr /etc/apache2/sites-{available,enabled}/vcs
rm -fr /etc/httpd/conf.d/jenkins.conf
rm -fr /etc/httpd/conf.d/redmine.conf
rm -fr /etc/httpd/conf.d/vcs.conf
rm -fr /etc/httpd/conf.d/jenkins.conf
rm -fr /etc/opt/alminium
fi

echo ""
Expand All @@ -51,8 +50,10 @@ read YN

if [ "$YN" = "y" ]
then
if [ ! -f /etc/debian_version ];then
if [ -f /usr/bin/yum ]; then
yum -y remove jenkins
elif [ -f /usr/bin/apt-get ]; then
apt-get -y purge jenkins
fi
rm -fr /var/lib/jenkins
fi
Expand All @@ -66,5 +67,3 @@ if [ "$YN" = "y" ]
then
rm -fr cache *.installed
fi


0