ALT Linux Bugzilla
– Attachment 2477 Details for
Bug 14697
Инсталятор не поддерживает установку с ftp сервера если нужен логин и пароль
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Исправленный работающий патч
installer-0.4-add_login_pass_in_ftp_method.patch (text/plain), 2.21 KB, created by
Slava Dubrovskiy
on 2008-03-06 13:08:21 MSK
(
hide
)
Description:
Исправленный работающий патч
Filename:
MIME Type:
Creator:
Slava Dubrovskiy
Created:
2008-03-06 13:08:21 MSK
Size:
2.21 KB
patch
obsolete
>diff -NurpP installer-0.4.org/initinstall.d/20-metadata-basesystem.sh installer-0.4/initinstall.d/20-metadata-basesystem.sh >--- installer-0.4.org/initinstall.d/20-metadata-basesystem.sh 2008-02-29 12:55:27 +0200 >+++ installer-0.4/initinstall.d/20-metadata-basesystem.sh 2008-03-04 11:28:12 +0200 >@@ -2,24 +2,37 @@ > > . install2-init-functions > >+ >+metadir="/tmp/metadata" >+mkdir -p "$metadir" >+cp-metadata "$metadir/basesystem.manifest" || : >+ >+ > METHOD="${METHOD:-cdrom}" > HOST="${HOST:-}" > PREFIX="${PREFIX:-}" >+AUTH_DATA="${LOGIN:-}" >+PASSWORD="${PASSWORD:-}" >+if [[ -n "$PASSWORD" && -n "$AUTH_DATA" ]]; then >+ AUTH_DATA=$(echo "$AUTH_DATA:$PASSWORD@") >+elif [ -n "$AUTH_DATA" ]; then >+ AUTH_DATA=$(echo "$AUTH_DATA@") >+fi >+ > > [ "$PREFIX" != "/" ] || PREFIX= > > image_prefix= > case "$METHOD" in >- http|ftp) >+ http) > image_prefix="$METHOD://$HOST$PREFIX" > ;; >+ ftp) >+ image_prefix="$METHOD://$AUTH_DATA$HOST$PREFIX" >+ ;; > cdrom|disk|nfs) > image_prefix="$image_dir" > ;; > esac > >-metadir="/tmp/metadata" >- >-mkdir -p "$metadir" >-cp-metadata "$metadir/basesystem.manifest" && >- sed -i -r -e "s#^(.*)#$image_prefix/ALTLinux/RPMS.base/\1#" "$metadir/basesystem.manifest" || : >+sed -i -r -e "s#^(.*)#$image_prefix/ALTLinux/RPMS.base/\1#" "$metadir/basesystem.manifest" || : >diff -NurpP installer-0.4.org/scripts/cp-metadata installer-0.4/scripts/cp-metadata >--- installer-0.4.org/scripts/cp-metadata 2008-02-29 12:55:27 +0200 >+++ installer-0.4/scripts/cp-metadata 2008-03-04 11:28:21 +0200 >@@ -5,6 +5,13 @@ > METHOD="${METHOD:-cdrom}" > HOST="${HOST:-}" > PREFIX="${PREFIX:-}" >+AUTH_DATA="${LOGIN:-}" >+PASSWORD="${PASSWORD:-}" >+if [[ -n "$PASSWORD" && -n "$AUTH_DATA" ]]; then >+ AUTH_DATA=$(echo "$AUTH_DATA:$PASSWORD@") >+elif [ -n "$AUTH_DATA" ]; then >+ AUTH_DATA=$(echo "$AUTH_DATA@") >+fi > > image_prefix= > curl_args="-s -S --retry 5 --retry-delay 2" >@@ -25,10 +32,14 @@ get_local_metadata() { > > > case "$METHOD" in >- http|ftp) >+ http) > image_prefix="$METHOD://$HOST$PREFIX" > get_remote_metadata "$1" > ;; >+ ftp) >+ image_prefix="$METHOD://$AUTH_DATA$HOST$PREFIX" >+ get_remote_metadata "$1" >+ ;; > cdrom|disk|nfs) > image_prefix="$image_dir" > get_local_metadata "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14697
:
2458
|
2465
|
2477
|
2478