Skip to content

Commit

Permalink
changed hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 21, 2017
1 parent a42e379 commit 786728c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/nc-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ EOF

# Default trusted domain ( only from nextcloudpi-config )
test -f /usr/local/bin/nextcloud-domain.sh && bash /usr/local/bin/nextcloud-domain.sh
sudo -u www-data php occ config:system:set trusted_domains 5 --value="nextcloudpi.local"

# email
sudo -u www-data php occ config:system:set mail_smtpmode --value="php"
Expand Down
7 changes: 6 additions & 1 deletion nextcloudpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ EOF
chmod 700 /home/www/ncp-launcher.sh
echo "www-data ALL = NOPASSWD: /home/www/ncp-launcher.sh , /sbin/halt" >> /etc/sudoers

# NEXTCLOUDPI MOTD
# NEXTCLOUDPI MOTD
##########################################
rm -rf /etc/update-motd.d
mkdir /etc/update-motd.d
Expand All @@ -87,6 +87,11 @@ EOF
EOF
chmod a+x /etc/update-motd.d/*

# HOSTNAME
##########################################
echo nextcloudpi > /etc/hostname
sed -i '$c127.0.1.1 nextcloudpi' /etc/hosts

# NEXTCLOUDPI AUTO TRUSTED DOMAIN
##########################################
mkdir -p /usr/lib/systemd/system
Expand Down

0 comments on commit 786728c

Please sign in to comment.