From c910a58f07fc26589943afb9e59a9fa44edbb7b2 Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Sat, 26 Mar 2016 14:15:28 +0100 Subject: [PATCH 1/4] Set the hostname of the box during the setup --- setup/system.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/setup/system.sh b/setup/system.sh index c2fa1b9d..d8d814a1 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -4,6 +4,18 @@ source setup/functions.sh # load our functions # Basic System Configuration # ------------------------- +# ### Set hostname of the box + +# If the hostname is not correctly resolvable sudo can't be used. This will result in +# errors during the install +# +# First set the hostname in the configuration file, then activate the setting +# Also make sure that the loopback device resolves to the hostname + +echo $PRIMARY_HOSTNAME > /etc/hostname +hostname $PRIMARY_HOSTNAME +sed -i "s/127\.0\.1\.1.*/127.0.1.1\t$PRIMARY_HOSTNAME/" /etc/hosts + # ### Add swap space to the system # If the physical memory of the system is below 2GB it is wise to create a From 3210ccdcac9791c8c8e9c950a482cf1d69a714be Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Sat, 26 Mar 2016 15:41:20 +0100 Subject: [PATCH 2/4] Don't set the hostname on the loopback 127.0.1.1 --- setup/system.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/setup/system.sh b/setup/system.sh index d8d814a1..1a7b3e9d 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -14,7 +14,6 @@ source setup/functions.sh # load our functions echo $PRIMARY_HOSTNAME > /etc/hostname hostname $PRIMARY_HOSTNAME -sed -i "s/127\.0\.1\.1.*/127.0.1.1\t$PRIMARY_HOSTNAME/" /etc/hosts # ### Add swap space to the system From 22395bdb8bca4049b8e28d376f225db95b4aa3a6 Mon Sep 17 00:00:00 2001 From: kurt89523 Date: Wed, 6 Apr 2016 17:31:59 -0700 Subject: [PATCH 3/4] Update to ownCloud v8.2.3 --- setup/owncloud.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/owncloud.sh b/setup/owncloud.sh index c71c3ffb..94dd70b6 100755 --- a/setup/owncloud.sh +++ b/setup/owncloud.sh @@ -17,8 +17,8 @@ apt_install \ apt-get purge -qq -y owncloud* # Install ownCloud from source of this version: -owncloud_ver=8.1.1 -owncloud_hash=34077e78575a3e689825a00964ee37fbf83fbdda +owncloud_ver=8.2.3 +owncloud_hash=bfdf6166fbf6fc5438dc358600e7239d1c970613 # Migrate <= v0.10 setups that stored the ownCloud config.php in /usr/local rather than # in STORAGE_ROOT. Move the file to STORAGE_ROOT. @@ -52,8 +52,8 @@ if [ ! -d /usr/local/lib/owncloud/ ] \ # The two apps we actually want are not in ownCloud core. Clone them from # their github repositories. mkdir -p /usr/local/lib/owncloud/apps - git_clone https://github.com/owncloudarchive/contacts 4ff855e7c2075309041bead09fbb9eb7df678244 '' /usr/local/lib/owncloud/apps/contacts - git_clone https://github.com/owncloudarchive/calendar ec53139b144c0f842c33813305612e8006c42ea5 '' /usr/local/lib/owncloud/apps/calendar + git_clone https://github.com/owncloudarchive/contacts 9ba2e667ae8c7ea36d8c4a4c3413c374beb24b1b '' /usr/local/lib/owncloud/apps/contacts + git_clone https://github.com/owncloudarchive/calendar 2086e738a3b7b868ec59cd61f0f88b49c3f21dd1 '' /usr/local/lib/owncloud/apps/calendar # Fix weird permissions. chmod 750 /usr/local/lib/owncloud/{apps,config} From bc40134b7b790a9597447e2ee71e3d928485af4c Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Thu, 7 Apr 2016 10:55:20 +0200 Subject: [PATCH 4/4] Remove comment about loopback interface --- setup/system.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/setup/system.sh b/setup/system.sh index 1a7b3e9d..cc152524 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -10,7 +10,6 @@ source setup/functions.sh # load our functions # errors during the install # # First set the hostname in the configuration file, then activate the setting -# Also make sure that the loopback device resolves to the hostname echo $PRIMARY_HOSTNAME > /etc/hostname hostname $PRIMARY_HOSTNAME