home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce scope of letsencrypt.sh script.
[config]
/
all_new_2018
/
set_hostname_and_fqdn.sh
diff --git
a/all_new_2018/set_hostname_and_fqdn.sh
b/all_new_2018/set_hostname_and_fqdn.sh
index f39a359b551ab7f06055293af65a855a03ba99af..3f95590bce3b4ff47abeb206cdc60bd36fadabe0 100755
(executable)
--- a/
all_new_2018/set_hostname_and_fqdn.sh
+++ b/
all_new_2018/set_hostname_and_fqdn.sh
@@
-18,7
+18,6
@@
if [ "${hostname}" = "" ]; then
echo "Need hostname as argument."
false
fi
echo "Need hostname as argument."
false
fi
-
echo "${hostname}" > /etc/hostname
hostname "${hostname}"
echo "${hostname}" > /etc/hostname
hostname "${hostname}"
@@
-39,8
+38,8
@@
for ip in $(hostname -I); do
continue
fi
fi
continue
fi
fi
- echo 'SETTING' $ip
final_ip="${ip}"
done
final_ip="${ip}"
done
+
echo "127.0.0.1 localhost.localdomain localhost" > /etc/hosts
echo "${final_ip} ${fqdn} ${hostname}" >> /etc/hosts
echo "127.0.0.1 localhost.localdomain localhost" > /etc/hosts
echo "${final_ip} ${fqdn} ${hostname}" >> /etc/hosts