Skip to content

Die KW 21/2022 im Link-Rückblick

Nextcloud create public upload link

So today I wanted to quickly setup a public shared link so that a friend of mine is able to easily upload a file to me.

Of course, I've stumbled over the file drop but I was not able to find the "File drop (upload only" section when I was creating this share.

I tried to find more information and was digging into the documentation. I was going through the issue list but at the end, I was not able to fix the missing option. I was also quickly updating the server to the latest version, but also, no "File drop" selection.

Than, after reading the logs, investigating the config.php, I finally found the missing link.

As an administrator, you have to go to Sharing and check the Allow public uploads configuration setting. After that, you can finally create your share as a user known as "file drop".

Die KW 20/2022 im Link-Rückblick

Upgrade gitea via bash on an uberspace webspace

I've just finished writing a little bash script to almost automatically upgrade my gitea instance on my uberspace webspace.

Hope it will help you.

    cat > "${HOME}/" <<DELIM
# @see:
# @since: 2022-05-16
# @author: stev leibelt <>

function _do_the_update () {
    local PATH_TO_GITEA="${HOME}/gitea/gitea"

    if [[ -f "\${PATH_TO_GITEA}" ]];
        echo ":: Stopping all running gitea process."

        killall gitea

        echo ":: Moving >>\${PATH_TO_GITEA}<< to >>\${PATH_TO_GITEA}.previous<<"

        mv "\${PATH_TO_GITEA}" "\${PATH_TO_GITEA}.previous"

    echo ":: Please visit >><<."
    echo ""

    echo ":: Please insert latest Version number without the v."

    wget -O "\${PATH_TO_GITEA}"\${LATEST_GITEAVERSION}/gitea-\${LATEST_GITEAVERSION}-linux-amd64

    if [[ -f "\${PATH_TO_GITEA}" ]];
        wget --output-document "\${PATH_TO_GITEA}.asc"\${LATEST_GITEAVERSION}/gitea-\${LATEST_GITEAVERSION}-linux-amd64.asc

        curl --silent | gpg --import

        gpg --verify "\${PATH_TO_GITEA}.asc" "\${PATH_TO_GITEA}"

        chmod u+x "\${PATH_TO_GITEA}"

        echo ":: Starting migration"

        \${PATH_TO_GITEA} migrate

        echo ":: Starting gitea"

        \${PATH_TO_GITEA} web
        echo ":: Something went wrong."

        if [[ -f "\${PATH_TO_GITEA}.previous" ]];
            echo ":: Restoring previous gitea."

            mv "\${PATH_TO_GITEA}.previous" \"${PATH_TO_GITEA}"

            echo ":: Starting gitea"

            \${PATH_TO_GITEA} web


    chmod +x ${HOME}/

Best regards, artodeto.