Skip to content

Commit

Permalink
Merge pull request #112 from techandme/beta
Browse files Browse the repository at this point in the history
1.4
  • Loading branch information
Ezra authored Jun 11, 2017
2 parents 9562347 + 4a040e2 commit e758a96
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 26 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

## Image
* [Image link](https://github.com/techandme/NextBerry/releases/tag/Images)
* [Image mirror](https://cloud.techandme.se/s/G6PaI0miBibhDwj)

## Documentation
[How to](https://github.com/techandme/NextBerry/wiki)
Expand Down
2 changes: 1 addition & 1 deletion apps/collabora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fi
whiptail --msgbox "Please before you start, make sure that port 443 is directly forwarded to this machine!" "$WT_HEIGHT" "$WT_WIDTH"

# Get the latest packages
apt update -q4 & spinner_loading
"$APT" update -q4 & spinner_loading

# Check if Nextcloud is installed
echo "Checking if Nextcloud is installed..."
Expand Down
20 changes: 0 additions & 20 deletions nextcloud-startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,6 @@ PW=$(cat /root/.tmp)
sed -i "s|$PW|XXX-SQL-PASS-XXX|g" "$SCRIPTS"/logs
rm /root/.tmp

# Make sure 000-default is disabled
a2dissite 000-default.conf
service apache2 restart

# Log file
echo "pastebinit -i $SCRIPTS/logs -a nextberry_$DATE -b paste.ubuntu.com > $SCRIPTS/.pastebinit" > /usr/sbin/install-log
echo "clear" >> /usr/sbin/install-log
Expand All @@ -496,22 +492,6 @@ chmod 750 /usr/sbin/install-log
chown ncadmin "$SCRIPTS/logs"
chmod 750 "$SCRIPTS/logs"

# Activate ssl in menu
echo "exec sudo $SCRIPTS/activate-ssl.sh" > /usr/sbin/activate-ssl
chmod +x /usr/sbin/activate-ssl

# Menu toggle
cat << TOGGLE > "/usr/sbin/menu-toggle"
if [ -f "$SCRIPTS"/.menu ]
then
rm "$SCRIPTS"/.menu
else
touch "$SCRIPTS"/.menu
fi
exec "$SCRIPTS"/nextcloud.sh
TOGGLE
chmod +x /usr/sbin/menu-toggle

# Reboot
any_key "Installation finished, press any key to reboot system..."
rm -f "$SCRIPTS/nextcloud-startup-script.sh"
Expand Down
48 changes: 45 additions & 3 deletions static/nextberry-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,51 @@ echo "13 applied" >> "$VERSIONFILE"
# Change current version var
sed -i 's|012|013|g' "$VERSIONFILE"
sed -i 's|V1.2|V1.3|g' "$VERSIONFILE"

# Done - Move this line to the new release on every new version.
whiptail --msgbox "Successfully installed V1.3, please manually reboot..." 10 65
fi

################### V1.4 ####################
if grep -q "14 applied" "$VERSIONFILE"; then
echo "14 already applied..."
else

# New login screen
if [ ! -f "$SCRIPTS/nextcloud.sh" ]
then
rm "$SCRIPTS"/nextcloud.sh
wget -q "$STATIC"/nextcloud.sh -P "$SCRIPTS"
chmod +x "$STATIC"/nextcloud.sh
else
wget -q "$STATIC"/nextcloud.sh -P "$SCRIPTS"
chmod +x "$STATIC"/nextcloud.sh
fi

# Activate ssl in menu
echo "exec sudo $SCRIPTS/activate-ssl.sh" > /usr/sbin/activate-ssl
chmod +x /usr/sbin/activate-ssl

# Menu toggle
cat << TOGGLE > "/usr/sbin/menu-toggle"
if [ -f "$SCRIPTS"/.menu ]
then
rm "$SCRIPTS"/.menu
else
touch "$SCRIPTS"/.menu
fi
exec "$SCRIPTS"/nextcloud.sh
TOGGLE
chmod +x /usr/sbin/menu-toggle
# Make sure 000-default is disabled
a2dissite 000-default.conf
service apache2 restart
# Set what version is installed
echo "14 applied" >> "$VERSIONFILE"
# Change current version var
sed -i 's|013|014|g' "$VERSIONFILE"
sed -i 's|V1.3|V1.4|g' "$VERSIONFILE"
# Done - Move this line to the new release on every new version.
whiptail --msgbox "Successfully installed V1.3, please manually reboot..." 10 65
fi
exit
1 change: 1 addition & 0 deletions static/nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ echo -e "$COLOR_WHITE To auto install Letsencrypt certs, type: $COLOR_PURPL
echo -e "$COLOR_WHITE To view RPI config settings, type: $COLOR_PURPLE sudo rpi-conf $COLOR_DEFAULT"
echo -e "$COLOR_WHITE To monitor your system, type: $COLOR_PURPLE sudo htop $COLOR_DEFAULT"
echo -e "$COLOR_WHITE $COLOR_PURPLE sudo fs-size $COLOR_DEFAULT"
echo -e "$COLOR_WHITE To view advanced config, type: $COLOR_PURPLE sudo raspi-config $COLOR_DEFAULT"
fi
echo -e "$COLOR_WHITE Toggle this menu on and of: $COLOR_PURPLE sudo menu-toggle $COLOR_DEFAULT"
# Log file check
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
013
014

0 comments on commit e758a96

Please sign in to comment.