mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Change password order for better debug
This commit is contained in:
+6
-6
@@ -100,12 +100,6 @@ NTPSERVER=${NTPSERVER:-pool.ntp.org}
|
|||||||
UPGRADE=${UPGRADE:-full-upgrade}
|
UPGRADE=${UPGRADE:-full-upgrade}
|
||||||
LINKED=${LINKED:-false}
|
LINKED=${LINKED:-false}
|
||||||
|
|
||||||
if [ -z "$PASSWORD" ]; then
|
|
||||||
PASSWORD=$(mkpasswd -m sha-512)
|
|
||||||
else
|
|
||||||
PASSWORD=$(mkpasswd -m sha-512 "$PASSWORD")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$SECURITY" ]; then
|
if [ -z "$SECURITY" ]; then
|
||||||
if $LINKED; then
|
if $LINKED; then
|
||||||
SECURITY=$TRANSPORT://$MIRROR${DIRECTORY%/*}/debian-security
|
SECURITY=$TRANSPORT://$MIRROR${DIRECTORY%/*}/debian-security
|
||||||
@@ -114,6 +108,12 @@ if [ -z "$SECURITY" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$PASSWORD" ]; then
|
||||||
|
PASSWORD=$(mkpasswd -m sha-512)
|
||||||
|
else
|
||||||
|
PASSWORD=$(mkpasswd -m sha-512 "$PASSWORD")
|
||||||
|
fi
|
||||||
|
|
||||||
BOOT=/boot/debian-$SUITE
|
BOOT=/boot/debian-$SUITE
|
||||||
URL=$TRANSPORT://$MIRROR$DIRECTORY/dists/$SUITE/main/installer-$ARCH/current/images/netboot/debian-installer/$ARCH
|
URL=$TRANSPORT://$MIRROR$DIRECTORY/dists/$SUITE/main/installer-$ARCH/current/images/netboot/debian-installer/$ARCH
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user