mirror of
https://github.com/EV21/uberspace-helper.git
synced 2026-10-08 04:43:18 +02:00
Compare commits
2
Commits
b1822d25ae
...
3c00c676fd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3c00c676fd
|
||
|
|
5fdacf5b34
|
No files matched your search
@@ -56,3 +56,37 @@ Connect via SSH to your Uberspace an then run:
|
|||||||
```sh
|
```sh
|
||||||
bash -c "$(wget -q -O - https://github.com/EV21/uberspace-helper/raw/main/gitea-installer.sh)"
|
bash -c "$(wget -q -O - https://github.com/EV21/uberspace-helper/raw/main/gitea-installer.sh)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```console
|
||||||
|
[isabell@stardust ~]$ bash -c "$(wget -q -O - https://sh.ev21.de/uberspace/gitea-installer.sh)"
|
||||||
|
This script installs the latest release of Gitea
|
||||||
|
and assumes a newly created Uberspace with default settings.
|
||||||
|
The following files and directories will be created:
|
||||||
|
/home/ubertest
|
||||||
|
├── bin
|
||||||
|
│ ├── [-rwxrw-r--] gitea (wrapper script)
|
||||||
|
│ └── [-rwxrw-r--] gitea-update
|
||||||
|
├── etc
|
||||||
|
│ ├── services.d
|
||||||
|
│ │ └── gitea.ini
|
||||||
|
│ └── ...
|
||||||
|
├── gitea
|
||||||
|
│ ├── custom
|
||||||
|
│ │ └── conf
|
||||||
|
│ │ └── app.ini (configuration file)
|
||||||
|
│ ├── data
|
||||||
|
│ └── [-rwxrw-r--] gitea (binary file)
|
||||||
|
└── ...
|
||||||
|
Do not run this script if you already use your Uberspace for other apps!
|
||||||
|
Do you want to execute this installer for Gitea? (y/n) y
|
||||||
|
Installing Gitea 1.18.4
|
||||||
|
Please set your Gitea login credentials.
|
||||||
|
Gitea admin user: AdminUserName
|
||||||
|
Your password input will not be visible.
|
||||||
|
Gitea admin password:
|
||||||
|
Gitea admin password confirmation:
|
||||||
|
... some magic moments later
|
||||||
|
You can now access your Gitea by directing you browser to:
|
||||||
|
https://isabell.uber.space
|
||||||
|
[isabell@stardust ~]$
|
||||||
|
```
|
||||||
+16
-2
@@ -22,7 +22,12 @@ function install_gitea
|
|||||||
echo "Installing $APP_NAME $LATEST_VERSION"
|
echo "Installing $APP_NAME $LATEST_VERSION"
|
||||||
echo "Please set your $APP_NAME login credentials."
|
echo "Please set your $APP_NAME login credentials."
|
||||||
read -r -p "$APP_NAME admin user: " ADMIN_USER
|
read -r -p "$APP_NAME admin user: " ADMIN_USER
|
||||||
read -r -p "$APP_NAME admin password: " ADMIN_PASS
|
ask_for_password
|
||||||
|
while [ -z "$ADMIN_PASS" ] || [ "$ADMIN_PASS" != "$ADMIN_PASS_CONFIRMATION" ]
|
||||||
|
do
|
||||||
|
echo That was not correct, try again
|
||||||
|
ask_for_password
|
||||||
|
done
|
||||||
wget --quiet --progress=bar:force --output-document "$TMP_LOCATION"/gitea "$DOWNLOAD_URL"
|
wget --quiet --progress=bar:force --output-document "$TMP_LOCATION"/gitea "$DOWNLOAD_URL"
|
||||||
verify_file
|
verify_file
|
||||||
mkdir --parents ~/gitea/custom/conf/
|
mkdir --parents ~/gitea/custom/conf/
|
||||||
@@ -53,7 +58,7 @@ function install_gitea
|
|||||||
install_update_script
|
install_update_script
|
||||||
echo "This is the file structure for this app"
|
echo "This is the file structure for this app"
|
||||||
echo_tree
|
echo_tree
|
||||||
printf "You can now access your $APP_NAME by directing you Browser to: \n https://%s.uber.space \n" "$USER"
|
printf "You can now access your $APP_NAME by directing you browser to: \n https://%s.uber.space \n" "$USER"
|
||||||
}
|
}
|
||||||
|
|
||||||
function uninstall_gitea
|
function uninstall_gitea
|
||||||
@@ -75,6 +80,15 @@ function uninstall_gitea
|
|||||||
set_critical_section
|
set_critical_section
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ask_for_password
|
||||||
|
{
|
||||||
|
echo "Your password input will not be visible."
|
||||||
|
read -s -r -p "$APP_NAME admin password: " ADMIN_PASS
|
||||||
|
echo
|
||||||
|
read -s -r -p "$APP_NAME admin password confirmation: " ADMIN_PASS_CONFIRMATION
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
# This is only relevant for the uninstaller for broken old installations
|
# This is only relevant for the uninstaller for broken old installations
|
||||||
function fix_stop_signal
|
function fix_stop_signal
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user