Projects
jsj
jsj-installtools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 84
View file
PrepareReposFor15.3
Changed
@@ -1,22 +1,22 @@ #!/bin/bash . /etc/os-release -rsync -vaPH --delete /etc/zypp/repos.d/ /etc/zypp/repos.d.sic/ -pushd /etc/zypp/repos.d +rsync -aP --delete /etc/zypp/repos.d/ /etc/zypp/repos.d.sic/ +pushd /etc/zypp/repos.d > /dev/null for n in *.repo; do if $n = $VERSION.repo ; then mv $n update.repo else - mv $n ${n/-_$VERSION/} 2>&1 > /dev/null + mv $n ${n/-_$VERSION/} > /dev/null 2>&1 fi done sed -i -e "/^$VERSION$/ s/$VERSION/update/" -e "/^name/ s/_$VERSION//" -e "/^/ s/-_$VERSION//" -e "s/$VERSION/\${releasever}/" *.repo for n in backports sle; do sed -e "s/update/$n/g" -e "s/oss$/$n/" < update.repo > $n.repo done -popd -echo "Ein Backup der Repos liegt unter /etc/zyy/repos.d.sic, um den vorigen" +popd > /dev/null +echo "Ein Backup der Repos liegt unter /etc/zypp/repos.d.sic, um den vorigen" echo "Repo-Zustand wieder herzustellen, führe folgende Kommandos aus:" -echo " pushd /etc/zypp; rm -r repos.d/\*; cp repos.d.sic/\* repos.d/; popd" +echo " pushd /etc/zypp; rm -r repos.d/*; cp repos.d.sic/* repos.d/; popd" echo echo "Wenn alles korrekt ist, gelingt ein Distribution-Update nun mit:" echo " zypper --releasever=15.3 dup"
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.