Fixed some capitalisation, slight wording and an echo stating name of settings.conf.bak
This commit is contained in:
parent
0cf57a5373
commit
c68a5ea34c
15
install.sh
15
install.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Basic install script for fenrir.
|
#Basic install script for Fenrir.
|
||||||
read -p "This will install fenrir. Press ctrl+c to cancel, or enter to continue." continue
|
read -p "This will install Fenrir. Press ctrl+c to cancel, or enter to continue." continue
|
||||||
|
|
||||||
# fenrir main application
|
# fenrir main application
|
||||||
install -m755 -d /opt/fenrir
|
install -m755 -d /opt/fenrir
|
||||||
@ -32,10 +32,11 @@ cp -a config/sound/template /usr/share/sounds/fenrir/template
|
|||||||
|
|
||||||
# config
|
# config
|
||||||
if [ -f "/etc/fenrir/settings/settings.conf" ]; then
|
if [ -f "/etc/fenrir/settings/settings.conf" ]; then
|
||||||
echo "Do you want overwrite your current settings? (y/n)"
|
echo "Do you want to overwrite your current global settings? (y/n)"
|
||||||
read yn
|
read yn
|
||||||
if [ $yn = "Y" -o $yn = "y" ]; then
|
if [ $yn = "Y" -o $yn = "y" ]; then
|
||||||
mv /etc/fenrir/settings/settings.conf /etc/fenrir/settings/settings.conf.bak
|
mv /etc/fenrir/settings/settings.conf /etc/fenrir/settings/settings.conf.bak
|
||||||
|
echo "Your old settings.conf has been backed up to settings.conf.bak."
|
||||||
install -m644 -D "config/settings/settings.conf" /etc/fenrir/settings/settings.conf
|
install -m644 -D "config/settings/settings.conf" /etc/fenrir/settings/settings.conf
|
||||||
else
|
else
|
||||||
install -m644 -D "config/settings/settings.conf" /etc/fenrir/settings/settings.conf.current
|
install -m644 -D "config/settings/settings.conf" /etc/fenrir/settings/settings.conf.current
|
||||||
@ -45,16 +46,16 @@ fi
|
|||||||
|
|
||||||
# end message
|
# end message
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Installation completed.
|
Installation complete.
|
||||||
install path:/opt/fenrir
|
install path:/opt/fenrir
|
||||||
settings path:/etc/fenrir
|
settings path:/etc/fenrir
|
||||||
|
|
||||||
To test fenrir
|
To test Fenrir
|
||||||
sudo systemctl start fenrir
|
sudo systemctl start fenrir
|
||||||
To have fenrir start at boot:
|
To have Fenrir start on system boot:
|
||||||
sudo systemctl enable fenrir
|
sudo systemctl enable fenrir
|
||||||
|
|
||||||
Pulseaudio users may want to run
|
Pulseaudio users may want to run
|
||||||
/usr/share/fenrir/tools/configure-pulseaudio
|
/usr/share/fenrir/tools/configure-pulseaudio
|
||||||
once as their user account and once as root.
|
once as their user account, then once as root.
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user