POL_Function_RootCommand
Informations
| Creator | Wiadmości |
|---|---|
|
GNU_Raziel
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks0 0 DescriptionFrançais :
Source code#!/bin/bash
#Creator : GNU_Raziel
# Accepted by Tinou
COMMAND="$*"
if [ "$COMMAND" == "" ]; then
POL_SetupWindow_message "$(eval_gettext 'No root command specified, abording installation.')" "$TITLE"
exit 0
else
# Setting warning
if [ "$POL_OS" == "Linux" ]; then
WARNING_NOTE="$(eval_gettext 'PlayOnLinux/PlayOnMac philosophy is to never ask super-user password, however, for this script, it s mandatory. So, we give you the command you must type yourself for this installation to go on :')"
else
cat << EOF > "$POL_USER_ROOT/tmp/note.bash"
#!/bin/bash
echo "$(eval_gettext 'PlayOnLinux/PlayOnMac philosophy is to never ask super-user password, however, for this script, it s mandatory. So, we give you the command you must type yourself for this installation to go on :')"
echo "$COMMAND"
bash
EOF
chmod +x "$POL_USER_ROOT/tmp/note.bash"
fi
# Displaying command
[ "$POL_OS" == "Mac" ] && xterm -e "$POL_USER_ROOT/tmp/note.bash"
[ "$POL_OS" == "Linux" ] && xterm -e "echo \"$WARNING_NOTE\"; echo \"$COMMAND\"; bash"
fi |
Contributions
Filters:
Contribute| Member | Wiadmości |
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com