summaryrefslogtreecommitdiffstats
path: root/snap/hooks/install
diff options
context:
space:
mode:
Diffstat (limited to 'snap/hooks/install')
-rwxr-xr-xsnap/hooks/install45
1 files changed, 0 insertions, 45 deletions
diff --git a/snap/hooks/install b/snap/hooks/install
deleted file mode 100755
index dea6c268fb..0000000000
--- a/snap/hooks/install
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-export SDATA=$(echo $SNAP_DATA | sed "s|$SNAP_REVISION|current|")
-export SCOMMON="$SNAP_COMMON"
-export isRoot=`true`
-snapctl set gitea.snap.workdir="$SDATA/custom"
-snapctl set gitea.snap.custom="$SCOMMON"
-
-function mkDirCommon(){
- for dir in $@; do
- mkdir -p "$SCOMMON/$dir"
- done
-}
-
-function mkdirData(){
- for dir in $@; do
- mkdir -p "$SDATA/$dir"
- if [ -d $SNAP/$dir ]; then
- cp -r --preserve=mode \
- $SNAP/$dir/* \
- $SNAP/$dir/.[a-zA-Z0-9-]* \
- $SDATA/$dir/ 2> $SCOMMON/log/snap-mkdirData.log
- fi
- done
-}
-
-mkDirCommon pictures \
- repositories \
- attachments \
- data \
- log
-
-mkdirData certs \
- sshkeytest \
- custom/conf \
- static/templates \
- static/scripts \
- static/public
-
-[[ -f $SNAP_COMMON/conf/app.ini ]] || $SNAP/bin/gconfig install
-
-# Configure Git to use the right templates
-mkdir -p $SDATA/git/
-cp -r --preserve=mode $SNAP/usr/share/git-core/templates $SDATA/git/
-$SNAP/usr/bin/git config --global init.templateDir $SDATA/git/templates/