Skip to content

Commit a6dd539

Browse files
committed
refactor
1 parent b0ee79a commit a6dd539

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

install

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ rsync -r ./nginx/ /usr/local/hestia/data/templates/web/nginx/
5151
# Update global bash.bashrc
5252
############################################
5353

54-
if ! grep -Fxq "# begin hestiacp-nodeapp" "/etc/bash.bashrc";then
54+
if ! grep -Fxq "# begin hcpp-nodeapp" "/etc/bash.bashrc";then
5555

5656
cat <<EOT >> /etc/bash.bashrc
57-
# begin hestiacp-nodeapp
57+
# begin hcpp-nodeapp
5858
export NVM_DIR="/opt/nvm"
5959
[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh" # This loads nvm
6060
[ -s "\$NVM_DIR/bash_completion" ] && \. "\$NVM_DIR/bash_completion" # This loads nvm bash_completion
6161
export PATH="/opt/nvm:\$PATH"
62-
# end hestiacp-nodeapp
62+
# end hcpp-nodeapp
6363
EOT
6464

6565
fi

nodeapp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @version 1.0.0
88
* @license GPL-3.0
9-
* @link https://github.com/steveorevo/hestiacp-nodeapp
9+
* @link https://github.com/steveorevo/hcpp-nodeapp
1010
*
1111
*/
1212

plugin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22
/**
33
* Plugin Name: NodeApp
4-
* Plugin URI: https://github.com/steveorevo/hestiacp-nodeapp
4+
* Plugin URI: https://github.com/virtuosoft-dev/hcpp-nodeapp
55
* Description: NodeApp is a plugin for HestiaCP that allows you to easily host NodeJS applications.
6+
* Version: 1.0.0
67
*/
78

89
// Register the install and uninstall scripts

uninstall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
rm -rf /opt/nvm
55

66
# Update global bash.bashrc
7-
sed '/^# begin hestiacp-nodeapp$/,/^# end hestiacp-nodeapp$/d' /etc/bash.bashrc > temp.txt && mv temp.txt /etc/bash.bashrc
7+
sed '/^# begin hcpp-nodeapp$/,/^# end hcpp-nodeapp$/d' /etc/bash.bashrc > temp.txt && mv temp.txt /etc/bash.bashrc
88

99
############################################
1010
# Uninstall templates

0 commit comments

Comments
 (0)