Compare commits

...

3 Commits

Author SHA1 Message Date
barremian d8c38c40c8
lxc-forgejo: Enable --yes for 'apt-get' cleanup commands 2024-05-30 05:57:55 +02:00
barremian 2a4097d663
lxc-forgejo: Enable --quiet for 'systemctl enable' 2024-05-30 05:56:58 +02:00
barremian 710f92871a
lxc-forgejo: Remove info written to ~/forgejo.creds 2024-05-30 05:54:54 +02:00
1 changed files with 3 additions and 6 deletions

View File

@ -37,9 +37,6 @@ chmod 750 /var/lib/forgejo
mkdir /etc/forgejo
chown root:git /etc/forgejo
chmod 770 /etc/forgejo
echo "" >>~/forgejo.creds
echo -e "Forgejo GIT User: \e[32mgit\e[0m" >>~/forgejo.creds
echo -e "Forgejo data directory: \e[32m/var/lib/forgejo\e[0m" >>~/forgejo.creds
msg_ok "Setup Forgejo"
msg_info "Creating Service"
@ -60,13 +57,13 @@ Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/forgejo
[Install]
WantedBy=multi-user.target
EOF
$STD systemctl enable --now forgejo
$STD systemctl enable -q --now forgejo
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get autoremove
$STD apt-get autoclean
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"