Remove previous emoji file on upgrade
This commit is contained in:
parent
e17aebfa11
commit
2962ae0575
|
@ -637,7 +637,6 @@ function pleroma_add_emoji {
|
|||
else
|
||||
sed -i "s|${shortcode},.*|${shortcode}, /emoji/${shortcode}.${image_extension}|g" $PLEROMA_DIR/config/emoji.txt
|
||||
fi
|
||||
cp $PLEROMA_DIR/config/emoji.txt $PLEROMA_DIR/config/emoji_prev.txt
|
||||
|
||||
chown -R pleroma:pleroma $PLEROMA_DIR
|
||||
clear
|
||||
|
@ -720,6 +719,7 @@ function upgrade_pleroma {
|
|||
if [ -f $PLEROMA_DIR/config/emoji_prev.txt ]; then
|
||||
cp $PLEROMA_DIR/config/emoji_prev.txt $PLEROMA_DIR/config/emoji.txt
|
||||
chown pleroma:pleroma $PLEROMA_DIR/config/emoji.txt
|
||||
rm cp $PLEROMA_DIR/config/emoji_prev.txt
|
||||
fi
|
||||
|
||||
sudo -u pleroma mix deps.get
|
||||
|
|
Loading…
Reference in New Issue