mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
tableflip
This commit is contained in:
parent
98cf99543f
commit
d383dcebfb
1 changed files with 4 additions and 4 deletions
|
@ -10,12 +10,12 @@ get__arg9() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
ask:
|
ask:
|
||||||
en: |
|
en: |
|
||||||
### Files in $final_path
|
### Files in $install_dir
|
||||||
|
|
||||||
| Name | weight |
|
| Name | weight |
|
||||||
| ---- | ------ |
|
| ---- | ------ |
|
||||||
EOF
|
EOF
|
||||||
for file in $final_path/* ; do
|
for file in $install_dir/* ; do
|
||||||
echo " | $file | $(du -sh $file | cut -f1) |"
|
echo " | $file | $(du -sh $file | cut -f1) |"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -50,8 +50,8 @@ validate__arg8() {
|
||||||
set__arg8() {
|
set__arg8() {
|
||||||
if [ -n "${arg8}" ]
|
if [ -n "${arg8}" ]
|
||||||
then
|
then
|
||||||
python -c "import crypt; print(crypt.crypt(\"${arg8}\", \"\$6\$saltsalt\$\"))" > $final_path/password
|
python -c "import crypt; print(crypt.crypt(\"${arg8}\", \"\$6\$saltsalt\$\"))" > $install_dir/password
|
||||||
ynh_print_info "The hash of your password has been registered in $final_path/password"
|
ynh_print_info "The hash of your password has been registered in $install_dir/password"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue