Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 65df2c92ac |
@@ -0,0 +1,19 @@
|
|||||||
|
# do not load default ranger config
|
||||||
|
set RANGER_LOAD_DEFAULT_RC FALSE
|
||||||
|
|
||||||
|
# source aliases
|
||||||
|
if test -f ~/.config/fish/.alias
|
||||||
|
source ~/.config/fish/.alias
|
||||||
|
end
|
||||||
|
|
||||||
|
# overwrite greeting
|
||||||
|
# potentially disabling fastfetch
|
||||||
|
function fish_greeting
|
||||||
|
# smth smth
|
||||||
|
if set -q TMUX
|
||||||
|
fastfetch --logo small
|
||||||
|
else
|
||||||
|
fastfetch
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# ==============================================================================
|
||||||
|
# Auth: alex
|
||||||
|
# File: server-gitea.sh
|
||||||
|
# Revn: 09-02-2026 0.0.1
|
||||||
|
# Func: configure gitea as much as possible automatically
|
||||||
|
#
|
||||||
|
# TODO: write
|
||||||
|
# comment
|
||||||
|
# test
|
||||||
|
# ==============================================================================
|
||||||
|
# CHANGE LOG
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# 09-02-2026: init
|
||||||
|
#
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
# assumed to run as sudo
|
||||||
|
|
||||||
|
server-gitea() {
|
||||||
|
|
||||||
|
# initialize port arg with default port
|
||||||
|
PORT=3000
|
||||||
|
# if arg was given
|
||||||
|
if [[ $# -gt 0 ]]; then
|
||||||
|
PORT=$1 # change port
|
||||||
|
# change service file to include new port
|
||||||
|
sed -i -e "s/web/web -p $PORT/" /usr/lib/systemd/system/gitea.service
|
||||||
|
systemctl daemon-reload # reload systemctl with new port
|
||||||
|
fi
|
||||||
|
|
||||||
|
systemctl start gitea # start gitea
|
||||||
|
# get status and store logs
|
||||||
|
systemctl status gitea >> dotfiles/scripts/arch/server-gitea.log
|
||||||
|
|
||||||
|
# let gitea through firewall
|
||||||
|
ufw allow in on wlan0 from any to any port $PORT
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user