mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 16:18:16 +00:00
Merge pull request #773 from nehaljwani/fix-lxc-create-report
Fix message after {fedora|centos}container creation
This commit is contained in:
commit
c60646aaa9
@ -916,6 +916,15 @@ then
|
|||||||
else
|
else
|
||||||
if [ ${root_expire_password} = "yes" ]
|
if [ ${root_expire_password} = "yes" ]
|
||||||
then
|
then
|
||||||
|
if ( mountpoint -q -- "${rootfs_path}" )
|
||||||
|
then
|
||||||
|
echo "To reset the root password, you can do:
|
||||||
|
|
||||||
|
lxc-start -n ${name}
|
||||||
|
lxc-attach -n ${name} -- passwd
|
||||||
|
lxc-stop -n ${name}
|
||||||
|
"
|
||||||
|
else
|
||||||
echo "
|
echo "
|
||||||
The root password is set up as "expired" and will require it to be changed
|
The root password is set up as "expired" and will require it to be changed
|
||||||
at first login, which you should do as soon as possible. If you lose the
|
at first login, which you should do as soon as possible. If you lose the
|
||||||
@ -926,4 +935,5 @@ also reset the expired flag):
|
|||||||
chroot ${rootfs_path} passwd
|
chroot ${rootfs_path} passwd
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -1468,6 +1468,15 @@ then
|
|||||||
else
|
else
|
||||||
if [ ${root_expire_password} = "yes" ]
|
if [ ${root_expire_password} = "yes" ]
|
||||||
then
|
then
|
||||||
|
if ( mountpoint -q -- "${rootfs_path}" )
|
||||||
|
then
|
||||||
|
echo "To reset the root password, you can do:
|
||||||
|
|
||||||
|
lxc-start -n ${name}
|
||||||
|
lxc-attach -n ${name} -- passwd
|
||||||
|
lxc-stop -n ${name}
|
||||||
|
"
|
||||||
|
else
|
||||||
echo "
|
echo "
|
||||||
The root password is set up as "expired" and will require it to be changed
|
The root password is set up as "expired" and will require it to be changed
|
||||||
at first login, which you should do as soon as possible. If you lose the
|
at first login, which you should do as soon as possible. If you lose the
|
||||||
@ -1478,4 +1487,5 @@ also reset the expired flag):
|
|||||||
chroot ${rootfs_path} passwd
|
chroot ${rootfs_path} passwd
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user