projects
/
carnet-upgrade.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure sources.list has correct permissions.
[carnet-upgrade.git]
/
src
/
functions.sh
diff --git
a/src/functions.sh
b/src/functions.sh
index
994f765
..
4c98608
100644
(file)
--- a/
src/functions.sh
+++ b/
src/functions.sh
@@
-367,7
+367,7
@@
check_upgrade () {
if [ "$upgrade" ]; then
notice "
if [ "$upgrade" ]; then
notice "
-Prije prelaska na Debian Wheezy potrebno je napraviti nadogradnju ovih paketa:
+Prije prelaska na Debian jessie potrebno je napraviti nadogradnju ovih paketa:
$upgrade
Pokrenite:
$upgrade
Pokrenite:
@@
-530,16
+530,18
@@
create_sources_list () {
# backup old version
if [ -f $sl -a ! -f $sl.$backup_ext ]; then
# backup old version
if [ -f $sl -a ! -f $sl.$backup_ext ]; then
- cp -av $sl $sl.$backup_ext
+ cp -v $sl $sl.$backup_ext
fi
# install new version
fi
# install new version
- cp -av $sl_new $sl
+ cp -v $sl_new $sl
notice "Novi sadrzaj datoteke /etc/apt/sources.list:
`cat /etc/apt/sources.list`"
fi
notice "Novi sadrzaj datoteke /etc/apt/sources.list:
`cat /etc/apt/sources.list`"
fi
+ # make sure permissions are correct
+ chmod 0644 $sl
rm $sl_new
}
rm $sl_new
}
@@
-869,7
+871,6
@@
pkgupgrade () {
# upgrade apache2/php5
upgrade_apache2 () {
pkgrm apache-common # prevents installation of apache2-suexec
# upgrade apache2/php5
upgrade_apache2 () {
pkgrm apache-common # prevents installation of apache2-suexec
- pkgrm php5-suhosin # not available for wheezy
pkgupgrade libapache2-mod-php5 php5-cli php5-cn apache2-cn \
php5-odbc mod-security-cn
}
pkgupgrade libapache2-mod-php5 php5-cli php5-cn apache2-cn \
php5-odbc mod-security-cn
}