質問があります。現在、Ubuntu 18のインストールが完了したら実行するスクリプトがあります。
そして、実行時にgsettingsを追加する方法がわかりません...起動方法の例は次のとおりです。
#!/bin/sh
#
######### is username and password entered? ########
if [ $# -ne 2 ]
then
echo "Username and password required."
echo "Example:"
echo "sh script-sessions users password"
exit
fi
USER = $ 1
PASSWORD = $ 2
######### is running as root? #########
me=$(whoami)
if [ "root" = $ yo ]
then
threw out ""
else
echo "This command must be run as administrator, run sudo su"
exit
fi
######### Does the user exist in the system? ########
exists=$ (cat /etc/passwd | grep "$ USER:")
if [ -n "$ exists" ]; then
echo "User exists"
else
echo "The user does not exist, enter a system user."
exit
fi